Part Number Hot Search : 
240128 SXXHR300 UPD70F3 BZV55C47 611226 54HC377 SCM0100 RL103
Product Description
Full Text Search
 

To Download S5D0127X01 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  electronics multimedia video S5D0127X01 data sheet page 1 of 96 modified on may/04/2000 multistandard video decoder/scaler the S5D0127X01 converts analog ntsc, pal or secam video in composite, s-video, or component format to digitized component video. output data can be selected for ccir 601 or square pixel sample rates in either ycbcr or rgb formats. the digital video can be scaled down in both the horizontal and vertical directions. the S5D0127X01 also decodes intercast, teletext, closed caption, and wss data with a built-in bit data slicer. digitized cvbs data can be output directly during vbi for external processing. features ? accepts ntsc-m/n/4.43, pal-m/n/b/g/h/i/d/k/l and secam formats with auto detection ? 6 analog inputs: 3 s-video, 6 composite, or 1 3-wire ycbcr component video ? 2-line luma and chroma comb filters including adaptive luma comb for ntsc ? programmable luma bandwidth, contrast, brightness, and edge enhancement ? programmable chroma bandwidth, hue, and saturation ? high quality horizontal and vertical down scaler ? intercast, teletext and closed caption decoding with built-in bit slicer ? direct output of digitized cvbs during vbi for intercast application ? analog square pixel or ccir 601 sample rates ? output in 4:4:4, 4:2:2, or 4:1:1 ycbcr component, or 24-bit or 16-bit rgb formats with dithering ? ycbcr 4:2:2 output can be 8 or 16 bits wide with embedded timing reference code support for 8-bit mode ? simultaneous scaled and non-scaled digital output ports outputs for 8-bit mode. ? direct access to scaler via bi-directional digital port. ? programmable gamma correction table ? programmable timing signals ? industry standard iic interface applications ? multimedia 100 pqfp ordering information device package temperature range S5D0127X01- q0r0 100 pqfp -20~+70c ? digital video ? video capture/editing related products ? s5d0123x01 multistandard video encoder
electronics S5D0127X01 data sheet multimedia video page 2 of 96 modified on may/04/2000 block diagram i i c h o s t i n t e r f a c e r e f e r e n c e g e n e r a t o r / c o m p e n s a t i o n 6 i n p u t m u x 2 - a g c s 2 - a d c s g a i n / o f f s e t c o n t r o l l u m a p r o c e s s i n g c h r o m a p r o c e s s i n g v b i d a t a d e c o d i n g s r a m v a r i a b l e l p f c o m b f i l t e r h o r i z o n t a l c o l o r s p a c e c o n v e r t e r g a m m a l u t d i g i t a l i n p u t t i m i n g l i n e l o c k , t i m i n g g e n e r a t i o n h s 1 h s 2 v s h a v v a v c k c k 2 s c h p i d e h a v e v a v o e n y [ 7 : 0 ] c c e n c c d a t s c l k s d a t a e x 1 , 0 a y [ 2 : 0 ] a c [ 2 : 0 ] c o m p 2 v r t v r b h s 1 v s x t a l i x t a l o s c a l e r c [ 7 : 0 ] e x v [ 7 : 0 ] d a t a f o r m a t v e r t i c a l s c a l e r o u t p u t e x v c o n t r o l d i r e c t . s l i c e d v b i o r r a w c v b s s c a l e r i n p u t o r s i m u l t a n e o u s n o n s c a l e r o u t p u t o r 2 4 - b i t o u t p u t n o n s c a l e r o u t p u t
electronics S5D0127X01 data sheet multimedia video page 3 of 96 modified on may/04/2000 pin assignment - 100 pqfp 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 60 59 58 57 56 55 54 53 52 51 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 e h a v v s s x t a l o x t a l i v d d a 1 r s t v d d 3 v s s v s s o e n e x v 0 p i d c k v s s v d d c k 2 o d d v s s c h ( p o r t b ) h a v c0 c1 c2 c3 c4 c5 c6 vss vss vdd3 vdd3 c7 y0 y1 y2 y3 S5D0127X01 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 vdda comp2 test vss ac2 vdda ac1 vss ac0 vdda ay2 vss ay1 vdda ay0 vss v r t h s 2 ( i i c ) s c l k c c e n c c d a t s d a t e x v 7 a e x 1 a e x 0 e x v 6 v d d 3 v d d 3 v s s v s s e x v 5 y 4 y 5 y 6 t e s t e n p o r t a v d d v s s e x v 3 e x v 4 97 98 99 100 ncp ncp v a v ( o e n c 0 ) e v a v ( o e n c 1 ) v d d 3 h s 1 n c p n c p ncp ncp ncp ncp n c p n c p n c p n c p v r b ncp ncp y 7 e x v 1 e x v 2 n c p n c p 61
electronics S5D0127X01 data sheet multimedia video page 4 of 96 modified on may/04/2000 pin description pin name pin # type description input ay0 84 i 1 of 6 analog cvbs or 1of 3 s-video y inputs. ay1 86 i 1 of 6 analog cvbs or 1of 3 s-video y inputs. ay2 88 i 1 of 6 analog cvbs input or 1 of 3 s-video y inputs or y input for 3 wire component input ac0 90 i 1 of 6 analog cvbs or 1 of 3 s-video c inputs. ac1 92 i 1 of 6 analog cvbs or 1 of 3 s-video c inputs or cb input for 3 wire component input ac2 94 i 1 of 6 analog cvbs or 1 of 3 s-video c inputs or cr input for 3 wire component input xtali 8 i pin 1 for an external crystal or ttl clock input. xtalo 7 o pin 2 for an external crystal. rst 10 i chip reset. active low signal. output (all output pins can be selectively three-stated) y0 - y7, c0 - c7 45-48,53-56,33- 39,44 o digital video outputs. exv0 - exv7 16,27,28,61-63, 68,71 i/o expanded digital video i/o port. can be configured as an additional 8-bit output port (no scaling), or additional outputs of the main digital output stream for 24 bit output modes, as a n 8-bit input for direct digital access of the down scaler. hs1 26 i/o programmable horizontal timing signal. one pulse every video line. when the exv port is configured as an input, this pin can be programmed as an input. hs2( iic ) 76 i/o programmable horizontal timing signal. one pulse every video line. at power up, this pin needs a 10 k w pull-down resistor to configure the chip to operate in iic mode. vs 23 i/o programmable vertical timing signal. when the exv port is configured as an input, this pin can be programmed as an input. hav 25 o programmable horizontal active video flag. vav(oenc0) 3 i/o programmable vertical active video flag. during reset, the pin is an input and the logic state of this pin is latched into the oenc [0] register bit. use a 10 k w resistor for pull-up or pull-down. ehav 5 o valid pixel data flag. polarity is programmable. active when output video data is valid.
electronics S5D0127X01 data sheet multimedia video page 5 of 96 modified on may/04/2000 evav(oenc1) 4 i/o valid line flag. polarity is programmable. active when output video line is valid. during reset, the pin is an input and the logic state of this pin is latched into the oenc [1]register bit. use a 10 k w resistor for pull-up or pull-down. odd 22 o odd field flag. polarity is programmable. active for fields 1 and 3. pid 17 o pal id flag. high for phase alternating line. oen 15 i digital video data, timing and clock output 3-state control. ck 18 i/o pixel clock. in normal decoding mode, this is an output. when the exv port is used as an input, this can be programmed as an input pixel clock. ck2 21 o pixel output clock (rate is one half of ck) aligned to hav signal. ccdat 73 o sliced vbi data output. data can be from closed caption, teletext, intercast, or wss type encoded data. ccen 74 o when high, this pin indicates that valid vbi data is being clocked out at the ccdat pin or at the digital video output. multi-purpose i/o ports and test enable porta 58 i/o multi-purpose i/o port. sch(portb) 24 i/o multi-purpose i/o port. testen 57 i when tied to vdd, the chip is put into the test mode. for normal use, this pin should be connected to vss. test 96 i when tied to vdd, the chip is put into the test mode. for normal use, this pin should be connected to vss. reference and compensation vrt 77 i/o adc vrt compensation (requires an external 0.1 m f capacitor connected to vss). vrb 78 i/o adc vrb compensation (requires an external 0.1 m f capacitor connected to vss). comp2 97 i/o internal 1.3 v reference (requires an external 0.1 m f capacitor connected to vss). host interface sclk 75 i serial clock for iic host interface. sdat 72 i/o serial data for iic host interface. aex0 - aex1 69 - 70 i device id selection for iic host interface. pin description (continued) pin name pin # type description
electronics S5D0127X01 data sheet multimedia video page 6 of 96 modified on may/04/2000 power and ground vdd 20,59 pwr digital power supply for output buffers. the voltage can be +5v or 3.3v depending on interface requirement. vdd3 11,12,42,43,66, 67 +3.3v digital power supply for internal logic. vdda 85,89,93,98 +5v analog power supply for adc, agc and reference circuits. vdda1 9 +5v analog power supply for clock generation circuitry. vss 6,13,14,19,40, 41,60,64,65,83, 87,91,95 gnd common ground. nc ncp 1,2,29-32,49-52, 79-82,99,100 - these pins are directly connected to the die substrate. if electrical connect is desired (not required) only connection to vss is allowed. pin description (continued) pin name pin # type description
electronics S5D0127X01 data sheet multimedia video page 7 of 96 modified on may/04/2000 pin cross reference: numerical order by pin number pin # pin name pin # pin name pin # pin name pin # pin name 1 ncp 26 hs1 51 ncp 76 hs2( iic ) 2 ncp 27 exv1 52 ncp 77 vrt 3 vav(oenc0) 28 exv2 53 y4 78 vrb 4 evav(oenc1) 29 ncp 54 y5 79 ncp 5 ehav 30 ncp 55 y6 80 ncp 6 vss 31 ncp 56 y7 81 ncp 7 xtalo 32 ncp 57 testen 82 ncp 8 xtali 33 c0 58 porta 83 vss 9 vdda1 34 c1 59 vdd 84 ay0 10 rst 35 c2 60 vss 85 vdda 11 vdd3 36 c3 61 exv3 86 ay1 12 vdd3 37 c4 62 exv4 87 vss 13 vss 38 c5 63 exv5 88 ay2 14 vss 39 c6 64 vss 89 vdda 15 oen 40 vss 65 vss 90 ac0 16 exv0 41 vss 66 vdd3 91 vss 17 pid 42 vdd3 67 vdd3 92 ac1 18 ck 43 vdd3 68 exv6 93 vdda 19 vss 44 c7 69 aex0 94 ac2 20 vdd 45 y0 70 aex1 95 vss 21 ck2 46 y1 71 exv7 96 test 22 odd 47 y2 72 sdat 97 comp2 23 vs 48 y3 73 ccdat 98 vdda 24 sch(portb) 49 ncp 74 ccen 99 ncp 25 hav 50 ncp 75 sclk 100 ncp
electronics S5D0127X01 data sheet multimedia video page 8 of 96 modified on may/04/2000 1. functional description 1.1. video input the S5D0127X01 supports complete video decoding of many analog video standards. in addition, the chip can support direct 8-bit ycbcr input for high quality video scaling and other processing. 1.1.1. analog video input figure 1 shows the detailed block diagram of the analog front end. up to six composite video sources, three s-video sources, one 3-wire ycbcr component video source, or any combination can be selected. the allowed inputs are selected using the insel[3:0] bits in the cmdb register. table 1 lists all possible input selections. the front end has two paths each containing an analog gain control, a clamping control, and an 8-bit adc. composite video input uses only the luma path. s-video and analog component ycbcr inputs utilize both the luma and chroma paths. the adc digital data is used to calculate the correct gain and clamp values. the data is feedback to the analog clamping and gain control. this architecture eliminates any offset and gain mismatch in the analog front end. figure 1. analog front end the analog inputs must be ac coupled through an external 0.1 m f capacitor clamp. due to the high sampling rate of the adc?s inside the S5D0127X01, most video sources will not require a low-pass filter for alias reduction. for those video sources with harmonics above 13 mhz, a simple single order pole at 6 mhz will provide sufficient high frequency signal reduction. this can be implemented with a 400 pf capacitor in parallel with the 75 w load. figure 2. typical analog video input 8 bit adc agc lpf m u x ay0 ay1 ay2 m u x ac0 ac1 ac2 agc 8 bit adc lpf offset gain offset vrt vrb comp1 to chroma processing to luma processing to timing generation 8-bit digital input 75 w 0.1 m f analog video S5D0127X01
electronics S5D0127X01 data sheet multimedia video page 9 of 96 modified on may/04/2000 1.1.2. digital agc control the agc normally references to the adc code difference between sync tip and back porch. two sets of sync tip-back porch adc values are available for different agc gain requirements: if agcgn = 0, the sync tip locks to code 2, and the back porch locks to code 70; when agcgn = 1, the sync tip locks to 16, and the back porch locks to code 70. video signal with abnormal sync tip or very bright saturated colors may cause the adc to limit the maximum value. this situation can be corrected by enabling the agcovf bit in the cmdb register to force the gain tracking loop to reduce agc when maximum limiting conditions occur. the agc may also be programmed to freeze the agc at the current value by setting the agcfrz bit in the cmdb register. once the agc is frozen, the gain can be manually adjusted with the agc register. the tracking time constant for the agc can be controlled with the agc_lpg[1:0] bits in the trackb register. in addition, the agc tracking time constant can be configured as 2x faster during acquisition via the agc_lkg . 1.1.3. digital video input the high quality digital video down scaler in the S5D0127X01 can be directly accessed via the exv bi-directional port. the S5D0127X01 accepts ccir 656 compliant 8-bit ycbcr digital video input with embedded or external timing. video timing may also be generated by the S5D0127X01. data path for 8-bit ycbcr input is shown in figure 3. selection of analog video input or digital ccir 656 data is with the inpsl[1:0] register bits. the S5D0127X01 can operate in master or slave timing mode when the chip is programmed for digital video input. 1.1.4. pixel clock and timing mode selection for digital video input pixel clock and synchronization timing can be individually selected to either come from an external generator or be generated internally. in addition, if synchronization is provided by an external source, the S5D0127X01 supports embedded syncs as defined in ccir 656, or ttl hs and vs inputs. selection of pixel clock is via ckdir bit in table 1: analog video input selections insel[3:0](hex) selected input(s) video type 0 ay0 composite 1 ay1 composite 2 ay2 composite 4 ac0 composite 5 ac1 composite 6 ac2 composite 8 ay0, ac0 s-video 9 ay1, ac1 s-video a ay2, ac2 s-video f ay2(y), ac1(cb), ac2(cr) ycbcr component video
electronics S5D0127X01 data sheet multimedia video page 10 of 96 modified on may/04/2000 cmdd register. timing selection is through either syndir or eav bit. figure 3. 8-bit ycbcr input data path by using an external pixel clock, the reference clock input at xtali is no longer required. additional register bits have to be programmed for different selections of pixel clock and timing, which are detailed in table 2. the following register/bit-settings are required for digital video input: insel[3:0] = 8, 9, a, or f. tstcgn = 1. dmctl [1:0] = 2 or 3. ugain = 238. brt = 34. sat = 229. rgbh = unit = ped = 1. table 2: digital video input pixel clock and timing selection pixel clock ttl timing embedded timing additional register programming ckdir *1 syndir *2 eav *3 vmen tstgph tstgen tstgfr pixsel mnfmt ifmt 0 0 0 1 0 1 3 0 if input data is at square pixel rate. 1 if input is at ccir 601 rate. 1 0 if input is 50 hz video. 1 if input is 60 hz video. 0 0 1 0 1 1 3 1 0 1 0 0 1 1 1 1 1 0 0 1 0 1 3 1 1 0 1 0 1 1 1 1 1 1 0 0 1 1 1 1 *1 : ckdir = 0 - ck is output and is internally generated. ckdir = 1 - ck is input from an external source. *2 : syndir = 0 - hs1 and vs are output. syndir = 1 - hs1 and vs are inputs from external sources. *3 : eav = 0 - chip will not sync to embedded timing. eav = 1 - chip will sync to embedded timing. note: the combination x11 for ckdir , syndir , eav is not valid. hs1 vs exv[7:0] timing control data demux y c luma processing chroma processing from luma adc from chroma adc to luma scaler to chroma scaler
electronics S5D0127X01 data sheet multimedia video page 11 of 96 modified on may/04/2000 when in digital input mode, all programmable timing registers (such as havb,have, hs2b etc.) are still functional. if hs1 and vs are programmed as inputs, the associated output timing controls such as hs1b,e will have no effect. an example of horizontal timing for digital input is shown in figure 4. figure 4. horizontal timing for exv port as digital input 1.1.5. additional information for analog component video input for the S5D0127X01 to correctly set the v component phase in analog component video input mode, pid (pin 17) and porta (pin 58) need to be connected together. porta has to be configured as input ( dira = 0) and connected to the internal cbg signal ( dataa [2:0] = 3). it is also recommended that external clamp circuit be used for cb and cr inputs (before the coupling caps) and the internal chroma clamp be disabled ( coffenb = 1) due to slight cb/cr leakage. 80 10 80 10 80 10 u 0 y 0 v 0 y 1 u 2 y 2 v 2 y 3 u 4 y 4 v 4 y 5 u 6 y 6 v 6 y 7 u x y x v x y x u x hav ck ck2 hs1 80 10 80 10 80 10 u 0 y 0 v 0 y 1 u 2 y 2 v 2 y 3 u 4 y 4 v 4 y 5 u 6 y 6 v 6 y 7 u x y x v x y x u x y x v x y x v x programmable, when an fully programmable havb location hav -- fully programmable, defines location of first, last pixel and defines cb,y,cr data location data group delay through chip -- exv[7:0] output - any input phase is acceptable constant to internal counter reference based on internal counter fully programmable have location the ck2 output clock phasing is aligned to the hav leading edge ck can be input or output this hs1 location can also come from a 656 sav code y[7:0] y output for ofmt=2 is shown, any 8 or 16 bit output format is allowed.
electronics S5D0127X01 data sheet multimedia video page 12 of 96 modified on may/04/2000 1.2. video tracking and timing generation when the S5D0127X01 is configured for analog video input, the chip tracks the video input and generates a sampling clock that is line locked to the input video. the S5D0127X01 requires an external reference clock for video tracking. this reference can be supplied via a crystal using the on chip crystal interface or any ttl compatible source. these configurations are shown in figure 5 1.2.1. clock input timing reference the S5D0127X01 can use either a 24.576 mhz or a 26.8 mhz reference. however, it is recommended that the 24.576 mhz reference be used for ccir 601 operation, and the 26.8 mhz reference be used for square pixel or dual mode operation. other specifications for the crystal are: ? fundamental or third overtone ? load capacitance of ~20 pf ? series resistance of 40 w or less ? frequency deviation of 50 ppm or less over operating temperature range figure 5. standard clock configurations 1.2.2. the sampling clock the sampling clock is generated by multiplying the line rate by n. this ensures that samples are aligned horizontally, vertically and in time. the required n factor for the S5D0127X01 is based upon the field rate (60 hz or 50 hz) and the desired sampling rates (ccir 601 or square pixel). field rate can be automatically detected and can be monitored with the ffrde t bit in the stat register. manual control of the field rate can be controlled with the mnfmt and ifmt bits. the pixsel bit in register cmda selects ccir 601 or square pixel. table 3 shows the constants for the various combinations of input formats and output pixel rates. using a crystal S5D0127X01 8 7 using a clock 24.576 mhz ttl clock 24.576 mhz 22 pf 22 pf n. c. xtali xtalo S5D0127X01 8 7 xtali xtalo 391 pf 5.7 m h optional for 3rd harmonic crystal
electronics S5D0127X01 data sheet multimedia video page 13 of 96 modified on may/04/2000 the time constants for the pixel clock tracking loop can be adjusted with the hfsel [1:0] bits. in addition to providing the pixel clock, the S5D0127X01 also outputs various timing signals to indicate the beginning of a line, a field, and for field and frame identification. all the timing and clock pins may be optionally put into high impedance state. three-state of these pins are software controlled and initial state of these pins at power up is controlled via two configuration pins: 3 and 4. the S5D0127X01 can generate all the video timing without video input. this enables the S5D0127X01 to be used as a video timing generator for a system that contains both the S5D0127X01 for live video input and a mpeg decoder which requires a video timing generator. 1.2.3. horizontal timing the S5D0127X01 creates many internal timing signals aligned to the horizontal sync tip (mid-way of the falling edge of horizontal sync, typically adc code 36). these include locations of color burst (cbg, cbgw) used in chrominance processing, back porch (bpg), and sync tip timing signals (slice, fs_pulse) used for agc and clamp functions. slice is low whenever the input is below half way level of horizontal sync (typically adc code 36). fs_pulse is a single clock pulse coincide with the start of slice. one of these internal signals can be made available at the porta or portb pin at any time. the chip outputs two horizontal synchronization signals: hs1 and hs2 . the start and stop locations for these signals are fully programmable. offset programmed to hsxb , hsxe , and hsxbe0 are added to the default edge locations as shown in table 4. note that there are different modulo numbers for different input video standards and output pixel rates . table 3: timing for different pixel rates ccir 601 data rates square pixel data rates units m n,b,g,h,i,d,k,k1,l m n,b,g,h,i,d,k,k1,l field rate 60 50 60 50 hz pixels/line (n) 858 864 780 944 pixels active pixels/line 720 720 640 768 pixels active lines/frame 480 580 480 580 lines pixel rate 13.5 13.5 12.27 14.75 mhz adc sampling rate 27 27 24.54 29.5 mhz
electronics S5D0127X01 data sheet multimedia video page 14 of 96 modified on may/04/2000 an additional signal, hav, is provided for horizontal video cropping. this signal has programmable polarity, start and stop locations. two 11-bit registers, havb and have , are used to define the first and last pixel locations of the horizontal portion of the cropped video. numbers programmed into these registers are used as offset to the default locations as shown in table 4. note that even though havb and have have 1-ck resolution, the difference between them should be maintained at multiple of 4 cks for correct output. table 4 shows the default edge locations relative to the midway of the falling edge of the analog horizontal sync. note the numbers shown are in multiple of ck clocks. figure 6 shows the approximate locations for the horizontal timing signals. horizontal timing signals used for scaling will be described in section 1.6.1. table 4: horizontal timing signal edge locations (in # of ck) description signal 60 hz 50 hz ccir 601 (modulo 1716) square pixel (modulo 1560) ccir 601 (modulo 1728) square pixel (modulo 1888) chip delay 120 120 120 120 sync gate (1-ck pulse) syg 72 72 72 72 back porch gate bpg [147 222] [129 204] [154 234] [168 254] color burst gate (1-ck pulse) cbg 222 204 234 254 wide color burst gate cbgw [159 254] [147 233] [173 254] [186 277] two pulses per line (1-ck each pulse) fh2 42, 900 42, 822 42, 906 42, 986 default one pulse per line hs1 [65 238] [45 220] [69 250] [65 270] default one pulse per line hs2 [65 238] [45 220] [69 250] [65 270] default horizontal cropping hav [351 75] [334 58] [379 91] [415 59]
electronics S5D0127X01 data sheet multimedia video page 15 of 96 modified on may/04/2000 figure 6. approximate locations for the horizontal timing signals 1.2.4. vertical timing the vertical timing signals include vs, vav, odd, sch, and pid. the vs is used for identifying the first line of video in the vertical position. the vs leading edge can be programmed to either track the incoming video?s serration pulses or to be aligned to the beginning of the video line or half way, as shown in figure 36 and figure 37. if valign = 0, the vs leading edge is based on the output of an internal low pass filter, and its location is dependent on the noise conditions of the video input. the trailing edge of vs is locked to either the beginning of the video line or half way. the half way location relative to the beginning of the video line changes depending on current input standard and output format. if valign = 1, the leading edge of the vs is aligned to the beginning of the video line or half way. the trailing edge is always aligned to the beginning of the video line. the vse bit in the cmda register can be programmed to shorten the vs falling edge by one horizontal line. the vav signal is used for vertical cropping. the start and stop lines for vav are programmable through the vavb and vave registers, respectively. the odd signal signifies the current field number. when odd is active, the current field is 1 or 3 (or 5 or 7 if in pal mode). the leading and trailing edges of odd can be aligned to either the leading edge of vs ( valign = 1) or the trailing edge of vs ( valign = 0). the signal may be used in conjunction with sch and pid to exactly identify the digital video output hs1,2 hav havb have hsb hse blank active video active video analog video input chip delay fs_pulse slice syg bpg cbg cbgw fh2
electronics S5D0127X01 data sheet multimedia video page 16 of 96 modified on may/04/2000 current field. to distinguish between fields 1, 2 verse fields 3, 4 (or fields 1, 2, 3, 4 verse fields 5, 6, 7, 8 for pal) the phase of the color burst relative to the sync tip must be measured. that information is provided by the sch pin. the S5D0127X01 provides the output of a comparator that measures whether the current color burst phase relative to the falling edge of the sync is greater or less than a predetermined constant. this constant is controlled with schcmp[3:0] . the polarity of the sch output pin depends on the current schcmp[3:0] value. the sch signal changes every video line. the sch for line 260 is held for the entire vertical blanking period. by using the sch signal for the same line from each field, proper field identification can be determined. figure 8 shows field identification values for schcmp[3:0] =0. it is important to note that the sch value is only valid for video signals that have a constant sync tip to color burst relationship. this is not the case with consumer vcrs. . figure 7. short term vertical timing hs1 vs odd vav evav (default) odd field and valign = 0 60 hz - ccir 601 = 885, square = 708 50 hz - ccir 601 = 891, square = 971 0, except 60 hz square = 2 even field or valign = 1 27, except 60 hz square = 28 0, except 60 hz square = 2 vs odd note: numbers shown are in ck. active high polarities are used. timing shown for vav and evav are with qualifier off. 15, except 60 hz square = 14 60 hz - 261 50 hz - ccir 601 = 273, square = 341 hav default width for each input standard and output mode
electronics S5D0127X01 data sheet multimedia video page 17 of 96 modified on may/04/2000 figure 8. ntsc vertical timing signals the pid pin is used to identify whether the current v-axis is inverted in pal mode. this signal changes at the color burst. by noting this value at the same line of each field, a determination of whether a field is from {1-4} or {5-8} can be made. as with the sch pin, the S5D0127X01 is designed to hold the line 260 pid measurement for the entire vertical blank period. this allows easy sampling of the pid or current field identification. the odd, sch and pid signals change at different times and more than once within the video fields. proper data for field identification is determined by latching all three signals at the trailing edge of vs. figure 9 shows the vs, odd, sch, and pid signals and their latched values for each of the 8 possible fields. figure 10 is the line to line timing diagram for these signals in pal mode. figure 9. pal vertical timing signals vs odd sch 1 2 3 4 field odd sch 1 2 3 4 h l h l h l l h truth table note: odd and sch are measured at the trailing edge of vs. vs odd sch 1 2 3 4 field odd sch 1 2 3 4 h l h l h l h l truth table note: odd, sch and pid are measured at the trailing edge of vs ( valign = 0). 5 6 7 8 pid 5 6 7 8 h l h l l h l l pid h l l h h l l h
electronics S5D0127X01 data sheet multimedia video page 18 of 96 modified on may/04/2000 figure 10. line to line vs, sch and pid timing (pal input) 1.3. horizontal luma processing a simplified block diagram for the luma path is shown in figure 11. figure 11. horizontal luma processing unit 1.3.1. luminance dc gain the S5D0127X01 can accommodate ccir 624 m/n/h/g standards, which fall into categories of -40 or -43 sync tip and inclusion or exclusion of 7.5 setup. the S5D0127X01 can produce correct ccir 601 luminance output levels by controlling the gain and offset in the luminance path via ped . this register should be set for the appropriate input standard. the programmable cont and brt registers provide the user with additional flexibility to create non-standard luminance gain and offset values. odd pid vs hs sch decimation filter chroma trap hybwr ctrap hypk cont brt from adc horizontal peaking contrast control brightness control programmable low pass filter hylpf hybwi
electronics S5D0127X01 data sheet multimedia video page 19 of 96 modified on may/04/2000 figure 12. luminance signal luminance levels produced by the S5D0127X01 for different broadcast standards (assuming agcgn =0, cont =0 and brt =0) are summarized in table 5. when digital component output is desired in rgb mode, the rgbh register can be programmed to increase the 0-100% values from standard ccir 601 levels to full range levels.the gain variations are shown in table 6. table 5: luminance digital level code m/n ped=1 m/n ped=0 b/g/h ped=1 signal level (ire) adc (cvbs) y[7:0] level (ire) adc (cvbs) y[7:0] level (ire) adc (cvbs) y[7:0] max input 109 255 255 109 255 255 117 255 255 peak white 100 240 235 100 240 235 100 229 235 black 7.5 83 16 0 70 16 0 70 16 blank 0 70 1 0 70 16 0 70 sync -40 2 1 -40 2 1 -43 2 ks0127b data path equation table 6: rgb output range rgb normal gain (rgbh=0) rgb high gain (rgbh=1) signal cy rgb (u,v=0) cy rgb (u,v=0) peak white 235 235 255 255 black 16 16 0 0 peak white black level blanking level sync tip max input c y 1.37 cvbs 100 ? = c y 1.288 cvbs 74 ? = c y 1.37 cvbs 80 ? =
electronics S5D0127X01 data sheet multimedia video page 20 of 96 modified on may/04/2000 for ccir 601 digital video input ( inpsl[1:0] = 1), register unit must be set to 1 to produce unit gain. 1.3.2. horizontal luma frequency shaping the luma path contains many programmable filters for different purposes. the combination of these filters will give different frequency characteristics. the over sampled video data from the adc pass through a decimation filter. the decimation filter has user programmable bandwidth. three registers are used to control the decimation filter characteristics and each is designed for certain purposes. the hybwi , when set to ?1?, provides extra bandwidth for very high quality video source. the hybwr , when set to ?1?, reduces the bandwidth so high frequency noise can be eliminated. the 3-bit register hylpf[2:0] provides the necessary bandwidth reduction for horizontal scaling. when all three registers are programmed to ?0?, the decimation filter has the bandwidth of the normal video. the S5D0127X01 provides the option of bypassing the decimation filter. this option should be used only when the input video is band limited and with low high frequency noise. for composite video input, the notch filter can be enabled ( ctrap set to ?1?) to extract the luminance. the notch filter has different center frequencies for different input video format. user selectable peaking function is included for edge enhancement. the notch filter should be bypassed for s-video and component video input, or if luma comb filter is enabled. the luminance filter characteristics have been designed to be very similar for all combinations of 60/50 hz video and ccir 601/square pixel sampling rates. figure 13 and figure 14 show the output characteristics of the luminance path with different filter combinations for the supported input standards and output pixel rates.
electronics S5D0127X01 data sheet multimedia video page 21 of 96 modified on may/04/2000 figure 13. medium to high frequency luma filter characteristics (ctrap=0) figure 14. medium to low frequency luma filter characteristics (ntsc, ctrap=1)
electronics S5D0127X01 data sheet multimedia video page 22 of 96 modified on may/04/2000 figure 15. medium to low frequency luma filter characteristic (pal, ctrap=1) figure 16. luma filter characteristic with peaking on (ntsc, ctrap=1)
electronics S5D0127X01 data sheet multimedia video page 23 of 96 modified on may/04/2000 1.4. horizontal chroma processing a simplified block diagram for the horizontal chroma processing unit is shown in figure 17. figure 17. horizontal chroma processing unit the S5D0127X01 supports chroma input in ntsc, pal, secam and component formats. the color standard is automatically detected and the various chroma processing blocks are enabled as required for the given chroma standard. details of the various chroma processing blocks follow. 1.4.1. if compensation for improved chroma demodulation when the input video is from a mis-tuned if source, an if compensation filter is included that has variable gain for the upper chroma side band. this is controlled by the cifcmp [1:0] bits at location cdem . the frequency response is shown in figure 18. for convenience, all plots are normalized to the ntsc modulation frequency. gain tracking frequency tracking cos v u sin cbw,fsec cbw,fsec ckill cgtc sat core hue, tstcfr cftc color killer ckill low pass low pass from adc saturation control secam frequency differentiator ugain vgain coring control uoffst offset control voffst gain / pal control auto detect rtco rtc_pid rtc_dto control tstcgn
electronics S5D0127X01 data sheet multimedia video page 24 of 96 modified on may/04/2000 figure 18. chroma if compensation frequency response 1.4.2. demodulation gain the demodulation gain block is controlled by feedback from the gain tracking block. for ntsc and pal type inputs, the gain constant is derived from a programmable reference compared against the u component of the input video. this reference is controlled by the sat register. the default value ?0? is the correct gain (saturation for nominal output). for secam type input, the feedback is calculated such that proper frequency demodulation is obtained. when external calibration is desired, the gain feed back loop can be ?opened? by setting tstcgn =1. the sat then controls bits 8 through 1 of a 10 bit multiplier. for standard auto tracking applications, it is recommended that the sat register be used as an end user saturation control. this register is 2?s compliment. 1.4.3. demodulation low pass filter the demodulation circuit also contains a programmable low pass filter and a coring function for noise reduction. the chroma low pass filter frequency response for the demodulation circuit for the various video standards are shown in figure 19
electronics S5D0127X01 data sheet multimedia video page 25 of 96 modified on may/04/2000 figure 19. chroma low pass filter frequency response 1.4.4. secam demodulation secam processing includes a frequency differentiator, a cloche and a de-emphasis filter. frequency response for the filters are shown in figure 20 and figure 21. figure 20. cloche filter frequency characteristic
electronics S5D0127X01 data sheet multimedia video page 26 of 96 modified on may/04/2000 figure 21. de-emphasis filter frequency response 1.4.5. additional chroma functions S5D0127X01 has many built in auto detection circuits. these allow S5D0127X01 to track any type of video standard input automatically. for analog component video input, the demodulation function is not enabled. the low pass filter provides a group delay for cb and cr alignment. this enables the two components to be sampled by one adc. an rtco serial output is provided that encodes the current chroma and pixel frequency of the decoder. this information can be used by an encoder running off of the decoder clock to produce proper color output. the horizontal position of the serial signal is controlled by the hs2 location. the phasing of the dto and the encoder can be reset using the rtc_dto bit. for pal mode, the pid polarity can be controlled with the rtc_pid bit. 1.5. comb filter comb filters provide superior y/c separation for composite ntsc and pal than simple chroma trap filter. the S5D0127X01 contains on-chip separate 2-line stored luma and chroma comb filters. an internal signal comb controls for what lines the comb function is enabled. this signal is available through the portb pin. combing is part of the vertical processing which also includes vertical scaling, which is discussed in section 1.6. a block diagram for the vertical processing section is shown in figure 22.
electronics S5D0127X01 data sheet multimedia video page 27 of 96 modified on may/04/2000 figure 22. vertical processing 1.5.1. luma comb filter the luma comb filter reduces high frequency chroma leakage into the luminance path. the S5D0127X01 uses 2-line stored luma data for combing. filter coefficients for different video input standards are provided and can be selected automatically based on the video input. filter coefficients may also be set manually. an optional active comb is employed for ntsc video. selection of luma comb coefficients is based on line-to-line chroma correlation. provision is made to disable luma comb for s-video, component, or digital video input. this is achieved by programming the luma comb control register mnycmb to ?1?, and by choosing the value 3 or 4 for ycmbco[2:0] . this will result either a 1-line or 2-line luma delay. care must be exercised when disabling the luma comb so that luma line delay matches the chroma path line delay. special filtering is applied to ensure that high vertical bandwidth is retained for the luma path. 1.5.2. chroma comb filter the chroma comb filter provides further color separation from the composite video. filter coefficients can be automatically selected based on the input video standard or manually set using nmccmb and ccmbco[2:0] . luma chroma horizontal scaler horizontal scaler luma adaptive comb chroma comb y c luma vertical scaler chroma vertical scaler vertical bw retention sum
electronics S5D0127X01 data sheet multimedia video page 28 of 96 modified on may/04/2000 1.6. scaling the S5D0127X01 includes a high quality down scaler. the video images can be down scaled in both horizontal and vertical direction to an arbitrary size. 1.6.1. horizontal scaler the horizontal scaler uses a 5-tap 32-phase interpolation filter for luma, and a 3-tap 8-phase interpolation filter for chroma. scaled pixel data are stored in an on-chip fifo so they can be sent out in a continuous stream. horizontal scaling ratio is programmed via the 15-bit register hscl . the timing signal ehav is used to indicate when scaled pixel data is available at the video output port. ehav can be programmed so that it is active for every line regardless of vertical cropping and scaling. or it can be programmed to be active only for valid video lines. for example, figure 23 shows the timing for cif output assuming hav is programmed to be active for 720 pixels. the hscl register is programmed with the value 4000 (hex). the trailing edge of ehav is either aligned with the trailing edge of hav if the total number of scaled pixels is even, or is one pixel clock earlier if the number is odd. figure 23. horizontal scaler timing for cif output (ccir 601 pixel rate) frequency response and group delay for the luma scaler are shown in figure 24 and figure 25, respectively. the luma interpolation filter is designed to achieve relatively flat frequency response and minimal group delay up to the normal video bandwidth. a flat full data path frequency response may be obtained with the help of the luma peaking control register hypk[1:0] . the high quality filter ensures minimal artifacts for any scaling ratio. ck2 hav ehav 720 360 y[7:0] y 1 y 0 y 2 y 3 - - y 357 y 358 y 359 c[7:0] v 0 u 0 u 2 v 2 - - v 356 u 358 v 358 y 356 u 356
electronics S5D0127X01 data sheet multimedia video page 29 of 96 modified on may/04/2000 figure 24. horizontal luma scaler interpolation filter frequency response figure 25. horizontal luma scaler interpolation filter group delay because of the limited bandwidth of the chroma data, a simpler interpolation filter is used for the horizontal chroma scaler. the frequency response and group delay for this filter are shown in figure 26 and figure 27, respectively. 1 1.5 2 2.5 3 g r o u p d e l a y ( 1 3 . 5 m h z c l o c k s )
electronics S5D0127X01 data sheet multimedia video page 30 of 96 modified on may/04/2000 figure 26. horizontal chroma scaler interpolation filter frequency response figure 27. horizontal chroma scaler interpolation filter group delay 1.6.2. luma vertical scaler vertical luma scaling uses either a 3-tap or 5-tap 8-phase interpolation filter depending on the horizontal scaling 0.5 1.0 1.5 g r o u p d e l a y
electronics S5D0127X01 data sheet multimedia video page 31 of 96 modified on may/04/2000 ratio. vertical scaling ratio is programmed via the 14-bit register vscl . a valid scaled line is indicated by the timing signal evav being active. the evav can be programmed to be internally gated by the vav signal so it can only be valid within the vertically cropped region. luma horizontal scaling can use either a 3-tap or a 5-tap interpolation filter depending on the horizontal scaling ration. if the scaled horizontal line has less than or equal to 384 pixels, the 5-tap luma interpolation filter can be turned on by programming the vrt2x bit to a ?1?. otherwise, the vrt2x bit should be set to ?0? and the 3-tap filter be used. the vybw bit provides additional vertical bandwidth control for vertical scaling. typically, when the vertical scaling ratio is less than 1/2, this bit should be set to ?1? to eliminate any aliasing effect. luma vertical scaler interpolation filter frequency response is shown in figure 28. figure 28. luma vertical scaler interpolation filter frequency response in vertical scaling, the start of signal vav controls the phase of the vertical scaler interpolation filter. if vavb , vave , vavod0 , vavev0 , and vscl are programmed such that the vertical interpolation filter has the same phase and scaling ratio as that of a memory controller (most memory controller has simple line dropping vertical scaling), it is possible to interface the S5D0127X01 to the memory controller without using evav. 1.6.3. chroma vertical scaling chroma vertical scaling uses different algorithms depending on video input standard and horizontal scaling ratio. if horizontal scaling results in line with less than or equal to 384 pixels, and the vrt2x is set to a ?1?, a 5-tap interpolation filter will be used for all video inputs. otherwise, for ntsc, a 3-tap interpolation filter will be used for ntsc input, and decimation (line dropping without filtering) will be used for pal and secam. filter characteristics for the 3-tap and 5-tap filters are shown in figure 29.
electronics S5D0127X01 data sheet multimedia video page 32 of 96 modified on may/04/2000 figure 29. chroma vertical scaler interpolation filter frequency response
electronics S5D0127X01 data sheet multimedia video page 33 of 96 modified on may/04/2000 1.7. vbi data processing the S5D0127X01 vbi data processing is very flexible in that it supports vbi data formats of: ? closed caption line 21 data service (eia-608) ? 525 line / 60hz teletext systems b,c,d (itu-r bt.653-2) ? 625 line / 50hz teletext systems a,b,c,d (itu-r bt.653-2) ? copy generation management system (eia/is-702) ? wide screen signalling (wss ets 300 294). note that the smpte data slicing is removed for the S5D0127X01 and replaced with the wss / cgms processing. this data can be accessed from the part via four different methods: ? enabling the ?raw un-processed 27mhz? y adc samples to be output for the appropriate lines in place of the normal yuv data. ? slicing the data (creating a clock and comparing the data to a threshold at the clock) and bursting this data out on y output. ? reading the sliced data from two internal registers via the iic bus. ? via 2 external pins that output the sliced vbi data and the time at which the slice is valid. a simplified block diagram for the vbi section is shown in figure 30. figure 30. vbi decoder block diagram mode ccen clock odd odden evenen oddos vbil ctrl logic slicer from y adc generator pixsel ifmt secam frame alignment fifo 8 y[7:0] normal decoded y data ccdata mux / vbi format vyfmt vbinsrt ttfram
electronics S5D0127X01 data sheet multimedia video page 34 of 96 modified on may/04/2000 table 7 lists all the video standards that the vbi data slicer supports. some of these modes are auto detected based on the current video input standard, configuring the vbi processing consists of many different steps which are individually explained below. 1.7.1. enabling the vbi processor the vbi processor can be enabled independently for the odd or even fields with the odden and evenen bits. some vbi data is only present on line in 1 of the 2 fields, these independent field enables allow control of the total vbi data output from the chip. these controls apply to all vbi lines, thus it is not possible to enable closed caption line 21 for the even field and line 19 teletext for both the odd and even field. 1.7.2. selecting the type of output data as previously mentioned, there are 4 different ways the vbi data can be extracted. three of these are selected as shown in the table, the fourth method (ccen and ccdat pins) is always available if vbi processing is enabled. table 7: video standards supported by vbi decoder mode value of chip detec- tion bits required values of registers to enable standard characteristics of the stan- dard format secam vbil0-15 tt_sys data rate (mhz) number of bits (bytes) 60hz teletext system c (ntsc / intercast) 1 0 2 0 5.727272 272 (34) 50hz teletext system b (pal) 0 0 2 0 6.9375 344 (43) 50hz teletext system a (secam) 0 1 2 0 6.203125 304 (38) 60hz teletext system b 0 1 2 1 5.727272 280 (35) 50hz teletext system c 0 1 2 2 5.734375 272 (34) 50hz teletext system d 0 1 2 3 5.6457875 280 (35) 60hz teletext system d 0 1 2 3 5.727272 280 (35) closed caption ntsc 601 n/a n/a 1 n/a 0.5035 16 (2) cgms (ntsc 60hz) 1 n/a 3 n/a 0.447443 20 (3) wss (pal 50hz) 0 n/a 3 n/a 5.0000 84
electronics S5D0127X01 data sheet multimedia video page 35 of 96 modified on may/04/2000 the S5D0127X01 adds an additional output mode and flexibility to vary the modes from line to line. if vbcvbs =0 and vbinsrt =1 S5D0127X01 will output sliced data on enabled lines. by setting vbimid to 1, any line for which vbil =3 will output raw adc data instead of wss or cgms. this mode allows a mixture of sliced and raw data. this can be used to output raw data from a teletext line and sliced data from a closed caption line. 1.7.3. select individual lines enabled for vbi processing the S5D0127X01 allows programmable selection of processing for the various video lines. for example teletext/intercast data can be sliced for lines 14 - 17, and closed caption for line 21. each 2-bit register vbil0 through vbil15 defines how a specific vbi line is processed. as can be seen in figure 36 for 60 hz and figure 37 for 50 hz video, the following alignments exist: table 8: vbi data output mode (vbiln != 0) vbcvbs vbinsrt output mode 0 0 the vbi data is available via the internal registers ccdat1 and ccdat2 . only the last 2 extracted bytes are stored in these registers. thus, this mode is only useful for extraction of closed caption data. 0 1 this mode enables output of the sliced vbi data. 1 0 this mode enables output of direct data from the adc. 1 1 this mode is invalid. table 9: vbi line(s) selection vbil number line number that the vbil processing command applies to (assuming oddos=1 ) odd field 60 hz even field 60 hz odd field 50 hz even field 50hz vbil0 all lines except 10-24 all lines except 273-287 all lines except 7-21 all lines except 320 - 334 vbil1 9&10 272&273 6&7 319&320 vbil2 11 274 8 321 vbil3 12 275 9 322 vbil4 13 276 10 323 vbil5 14 277 11 324 vbil6 15 278 12 325 vbil7 16 279 13 326 vbil8 17 280 14 327 vbil9 18 281 15 328 vbil10 19 282 16 329 vbil11 20 283 17 330 vbil12 21 284 18 331 vbil13 22 285 19 332 vbil14 23 286 20 333 vbil15 24&25 287&288 21&22 334&335
electronics S5D0127X01 data sheet multimedia video page 36 of 96 modified on may/04/2000 the oddos[1:0 ] bits allow offset between the odd and even fields. thus vbil9 can be lines 17,18 or 19 for odd fields while vbil9 is still line 281 for even fields. this extra controls account for variations of vbi data locations from odd and even fields. when intercast or teletext data is selected, an 8-bit user programmable register ( ttfram ) is provided for the framing byte. the frame alignment processor uses this information to properly locate the first data bit on each line 1.7.4. raw cvbs data output format when raw adc data is selected as output in place of the normal yuv or rgb data. the following rules apply: ? for 656 type 8 bit outputs, the adc data outputs with successive data points in place of the cb, y, cr, y data stream. ? for 16 bit or 24 bit outputs, the adc data is output on the y[7:0] and c[7:0] output pins. at any ck2 clock 2 bytes of adc data are output. the y[7:0] bus represents data n while c[7:0] is data n+1. ? adc data is only output during the region that hav is active. ? all adc outputs are limited to the range 1-254, thus a 0 or 255 value will not be output. for the line selected mode described above using vbcvbs and vbil , data is from the luma adc only. if c adc data or the entire video line is required, configure ofmt bits. 1.7.5. sliced data output formats while sliced data is available for many of the output formats, the target application is 656 output format. the description of data format is limited to this mode. the S5D0127X01 allows this data to be output during active video. figure 31 shows the timing diagram for vyfmt[1:0] =3. figure 31. vbi insertion timing for vyfmt[1:0]=3 digitized cvbs data can also be output on the video output port (except for output format 1, 5 and 7). cvbs is video input hav 23h 54h 10h ccen - vbinsrt =0 10h 84h e4h 85h 2dh a4h 45h 45h 10h 10h 10h 10h 10h ccen - vbinsrt =1 y[7:0] -- vyfmt =3 y[7:0] -- vyfmt =3 zoom in - random data vbinsrt =1 vbinsrt =1
electronics S5D0127X01 data sheet multimedia video page 37 of 96 modified on may/04/2000 always digitized at the ck clock rate. cvbs data is available when hav is active. raw cvbs data is output in a similar fashion as decoded video. for 8-bit output format, data is output at ck rate using the same 8-bit port as the decoded video. for 16-bit and 24-bit output format, data is output at ck2 rate using y and c ports. the sequence of data output is cvbs 2n on y, and cvbs 2n+1 on c (note that exv port is not used in 24-bit format for outputting raw cvbs data). for closed caption data, two read-only registers, ccdat1 and ccdat2 , are provided so the closed caption data can be read via the host interface. the vbiflg bit can be polled to see if data captured in the two registers can be safely read. 1.8. color space converter the color space converter processes the video data as ycbcr 4:4:4 when converting to rgb. a programmable limiter (ycrang) can be imposed on the y/c data to limit the ranges. one can choose to limit the y/c to 1 - 254, or y to 16 - 235 and c to 16 - 240. when selected, ycbcr 4:4:4 is converted to 24 bit rgb according to the following equations: for 16-bit rgb output, truncation with dithering is used to convert the data from 24 bit to 16 bit. 1.9. gamma correction the S5D0127X01 programmable gamma tables allows the customer to apply many different type of corrections. these corrections can be a standard 2.2 factor for ntsc or 2.8 for pal. these factors can be applied in the rgb or yuv domains. a basic standard gamma equation of when applied to the r, g, or b signals, generates the response shown as the upper curve below. it is the inverse of the monitor response and thus compensates to produce a linear response. rc y 1.375 c r + = gc y 0.703 c r ? 0.328 c b ? = bc y 1.734 c b + = rr ' 2.2 =
electronics S5D0127X01 data sheet multimedia video page 38 of 96 modified on may/04/2000 figure 32. rgb gamma correction 1.9.1. programming the S5D0127X01 the previous response is easily programmed into the S5D0127X01 loading the 0 , 8, 16, 24 etc. values into the gamma0,1,2,3 locations. thus every 8th value is stored. the S5D0127X01 will use linear interpolation to generate the values between every 8th points. this is shown in the following figure. figure 33. gamma lut programming tv tube characteristic gamma correction effective output 0 8 16 24 32 40 48 56 64 192 200 208 216 224 232 240 248 input gamma0 gamma1 gamma2 gamma3 gamma4 gamma5 gamma6 gamma7 gammad0 gammad1 gammad2 output
electronics S5D0127X01 data sheet multimedia video page 39 of 96 modified on may/04/2000 for ease of design, the difference between adjacent points must also be loaded. the complete data values for the previous gamma factor of 1/2.2 is shown in the table below. the flexibility of this architecture is shown in the following example. here it is assumed that the S5D0127X01 is operating in a yuv output mode but some form of gamma correction is required. by converting the rgb gamma correction function back to the yuv color space, the following function can be applied to the u and v signals for improved color performance. this flexibility can be extended in software to produce many type of customer defined transfer functions. table 10: rgb gamma lut values offset gamma program at index offset+40h gammad program at index offset+60h 0 0 53 1 53 20 2 7 3 1 4 3 87 12 4 99 11 5 110 10 6 1 20 8 7 128 8 8 136 8 9 144 7 a 151 7 b 15 8 6 c 164 6 d 170 6 e 17 6 5 f 181 6 10 18 7 5 11 192 5 12 197 5 13 202 5 14 20 7 4 15 211 5 16 21 6 4 17 220 5 18 22 5 4 19 22 9 4 1a 23 3 4 1b 23 7 4 1c 24 1 4 1d 24 5 4 1e 24 9 3 1f 252 4
electronics S5D0127X01 data sheet multimedia video page 40 of 96 modified on may/04/2000 figure 34. gamma correction for cb and cr
electronics S5D0127X01 data sheet multimedia video page 41 of 96 modified on may/04/2000 1.10. digital video output the S5D0127X01 can output digital video data in various formats, which are tabulated in table 11 . all 8-bit output table 11: digital video output format clock ck2 ck ofmt 0 1 4 5 6 7 2, 3 type ycbcr 4:2:2 ycbcr 4:1:1 ycbcr 4:4:4 rgb 565 rgb 888 rgb 888 ycbcr 4:2:2 pin 2n +1 4n +1 +2 +3 n n n n 4n +1 +2 +3 c0 cb0 cr0 cb0 b0 b0 b3 c1 cb1 cr1 cb1 b1 b1 b4 c2 cb2 cr2 cb2 b2 b2 b5 c3 cb3 cr3 cb3 b3 b3 b6 c4 cb4 cr4 cr6 cr4 cr2 cr0 cb4 b4 b4 b7 c5 cb5 cr5 cr7 cr5 cr3 cr1 cb5 g0 b5 g2 c6 cb6 cr6 cb6 cb4 cb2 cb0 cb6 g1 b6 g3 c7 cb7 cr7 cb7 cb5 cb3 cb1 cb7 g2 b7 g4 y0 y0 y0 y0 y0 y0 y0 y0 g3 g0 g5 cb0 y0 cr0 y0 y1 y1 y1 y1 y1 y1 y1 y1 g4 g1 g6 cb1 y1 cr1 y1 y2 y2 y2 y2 y2 y2 y2 y2 g5 g2 g7 cb2 y2 cr2 y2 y3 y3 y3 y3 y3 y3 y3 y3 r0 g3 r3 cb3 y3 cr3 y3 y4 y4 y4 y4 y4 y4 y4 y4 r1 g4 r4 cb4 y4 cr4 y4 y5 y5 y5 y5 y5 y5 y5 y5 r2 g5 r5 cb5 y5 cr5 y5 y6 y6 y6 y6 y6 y6 y6 y6 r3 g6 r6 cb6 y6 cr6 y6 y7 y7 y7 y7 y7 y7 y7 y7 r4 g7 r7 cb7 y7 cr7 y7 exv0 cr0 r0 b0 exv1 cr1 r1 b1 exv2 cr2 r2 b2 exv3 cr3 r3 g0 exv4 cr4 r4 g1 exv5 cr5 r5 r0 exv6 cr6 r6 r1 exv7 cr7 r7 r2
electronics S5D0127X01 data sheet multimedia video page 42 of 96 modified on may/04/2000 formats use ck as pixel clock; the other formats use ck2 as pixel clock. the first pixel is always aligned to the leading edge of the hav signal. 1.10.1. validation code insertion S5D0127X01 inserts validation codes during inactive video (hav is inactive), and invalid video (hav is active but ehav is inactive) to assist in recognition of scaled data and vbi data. table 12 lists the available codes, when they are inserted, and related programming registers. an example timing diagram for some of the programmable modes is shown in figure 35. in this diagram, the field rate is 60 hz, a ccir 601 sampling rate has been selected thus giving 720 active pixels. the horizontal scaling ratio has been selected for an output of 718 out of 720 pixels. table 12: invalid and unused code insertion code description invaly this user programmed code is inserted in the y or g output stream in scaling operation when hav is active while ehav is inactive. insertion of this code is independent of the output format. related register is invaly . invalu this user programmed code is inserted in the u or b output stream in scaling operation when hav is active while ehav is inactive. insertion of this code is independent of the output format. related register is invalu . invalv this user programmed code is inserted in the v or r output stream in scaling operation when hav is active while ehav is inactive. insertion of this code is independent of the output format. related register is invalv . unusey this user programmed code is inserted in the y or g output stream when hav is inactive and no other reference code is inserted. insertion of this code is independent of the output format. related register is unusey . unuseu this user programmed code is inserted in the u or b output stream when hav is inactive and no other reference code is inserted. insertion of this code is independent of the output format. related register is unuseu . unusev this user programmed code is inserted in the v or r output stream when hav is inactive and no other reference code is inserted. insertion of this code is independent of the output format. related register is unusev .
electronics S5D0127X01 data sheet multimedia video page 43 of 96 modified on may/04/2000 figure 35. horizontal data timing for various output modes 1.10.2. 656 op codes the S5D0127X01 supports timing synchronization through embedded (656) timing reference codes in the output video data stream. this mode is available for output format 3 ( ofmt [3:0] = 3). the 656 op codes follow the ccir 656 standard. an optional set of 656 op codes can be enabled to identify vbi data using the taskb bit. the (a,b,c,d) inserted codes for 656 output modes are explained below. locations in the data stream are shown in figure 35. the d? data is substituted for the standard codes shown in column d if taskb bit is set and the current line is processing vbi data (sliced or raw adc data format). u u u u u u u i u i u i u i u 0 u 1 u 2 u 3 y 0 u 714 y 715 u u u u y u y u y u y i y i y i y i y 0 y 1 y 2 y 3 y 0 y t714 y y715 y u y u v u v u v u v i v i v i v i v 0 v 1 v 2 v 3 v 0- v 714 v 715 v u v u v u u u v u u i v i u i v i u 0 v 0 u 2 v 2 y 0 u 714 v 714 u u v u ehav ck ck2 hav y 0 y u y u v u y u u u y u y u v u y i y i y i y u u i y i v i y i u i y i v i y i u 0 y 0 v 0 y 1 u 2 y 2 v 2 y 3 y 0 y 0 u x y x v x y x u u y u v u y i y 0 y 1 y 2 y 3 y 0 y 714 y 715 y u y u legend luma data with pixel number u 0 chroma (cb) data with pixel number v 0 chroma (cr) data with pixel number y i programmable invaly data (index 0x32) u i programmable invalu data (index 0x33) v i programmable invalv data (index 0x34) y u programmable unusey data (index 0x35) u u programmable unuseu data (index 0x36) v u programmable unusev data (index 0x37) ofmt=0 (16 bits @ 13.5 mhz 4:2:2 - 601) invalid data (during active video but scaling has made picture smaller and right justified) unused data ofmt=2 (8 bits @ 27 mhz 656 data no sav eav) unused data if horizontal scaling is disabled, ehav will be the same as hav and there will be no invalid data. for this example, the last data would be y 719 ofmt= 3 a b c d sav -- see table 12 for details a b c d eav -- see table for details same format as ofmt=2 ofmt=4 (24 bits @ 13.5 mhz yuv 4:4:4) y[7:0] c[7:0] y[7:0] y[7:0] c[7:0] exv[7:0]
electronics S5D0127X01 data sheet multimedia video page 44 of 96 modified on may/04/2000 figure 36. vertical timing for 60 hz video fields 2,4 odd odd 263 264 265 266 267 268 269 270 1 2 3 4 5 6 7 8 9 10 20 21 271 272 273 525 284 283 fields 1,3 60 hz even field 60 hz odd field vs vs valign =0 vs valign =0 odd 0 0 0 0 0 0 0 - 1 1 0 11 vbil[n] 656 sav eav codes for vse=0, valign=1 digital output valign =0 odd valign =1 valign =0 vs valign =1 vbil[n] y[0..7] valign =1 f1 ec f1 ec f1 ec b6 ab b6 ab b6 ab b6 ab b6 ab b6 ab 9d 80 9d 80 9d 80 9d 80 vse =1 vse =0 vse =0 vse =1 vse =1 vse =0 vse =1 vse =0 vse =0 vse =1 vse =0 vse =1 y[0..7] b6 ab b6 ab f1 ec f1 ec f1 ec f1 ec f1 ec f1 ec f1 ec f1 c7 da c7 da c7 da c7 vse =1 vse =0 vse =1 vse =0 vse =0 vse =1 vse =1 vse =0 656 sav eav codes for vse=0, valign=1 valign =1 da c7 9d 80 1 2 3 4 5 6 7 8 9 10 20 21 input analog 22 digital output 264 265 266 267 268 269 270 271 272 273 284 283 analog input 285 sav e av sav e av task b vip 656 sav eav codes for vse=0, valign=1, vbil12-vbil1=1, taskb=1 y[0..7] f1 ec f1 ec f1 ec b6 ab b6 ab b6 ab b6 ab b6 ab b6 24 13 0e 13 0e 13 0e 13 80 da c7 15 23 24 22 23 14 13 12 0 0 13 80 9d 80 9d 80 9d 80 9d 80 9d 80 524 525 285 286 286 287 262 263 0 0 0 0 0 0 0 - 1 1 0 11 15 14 13 12 0 0 da c7 da c7 da c7 9d 80 da c7 da c7 b6 ab b6 ab f1 ec f1 ec f1 ec f1 ec f1 ec f1 ec f1 62 7f 62 7f 62 7f 62 7f 62 9d 80 7f c7 da c7 da c7 9d 80 y[0..7] task b vip 656 sav eav codes for vse=0, valign=1, vbil12-vbil1=1, taskb=1
electronics S5D0127X01 data sheet multimedia video page 45 of 96 modified on may/04/2000 figure 37. vertical timing for 50 hz video vs odd 623 624 625 1 2 3 4 5 6 7 622 fields 1,3 50 hz odd field vs valign =0 odd digital output vs valign =1 odd valign =1 0 0 0 0 0 0 0 - 1 1 0 14 vbil[n] odd valign =1 vs valign =1 vse =0 vse =1 vse =1 vse =0 vse =1 vse =1 vse =0 valign =0 vse =1 vse =0 y[0..7] da c7 f1 ec f1 ec b6 ab b6 ab b6 ab b6 ab b6 ab b6 ab b6 ab b6 ab b6 656 sav eav codes for vse=0, valign=1 fields 2,4 310 311 312 313 314 315 316 317 318 319 320 50 hz even field vse =0 vse =1 valign =0 vse =1 vse =1 vse =0 vse =0 vse =1 valign =0 vse =1 vse =-0 20 21 22 23 24 621 623 624 625 1 2 3 4 5 6 7 622 20 21 22 23 24 analog input 25 15 15 0 0 0 ab 9d 80 9d 80 9d da c7 da c7 vse =0, alt656 =0 vse =0, alt656 =1 sav e av task b vip 656 sav eav codes for vse=0, valign=1, alt656=1, vbil15-vbil1=1, taskb=1 y[0..7] da c7 da c7 da c7 f1 ec f1 ec b6 ab b6 ab b6 ab b6 ab b6 24 13 0e 13 0e 13 0e 13 0e 13 80 9d 80 da c7 da c7 0 0 0 0 0 0 0 - 1 1 0 14 vbil[n] 15 15 0 0 0 y[0..7] b6 ab b6 ab f1 ec f1 ec f1 ec f1 ec f1 ec f1 ec f1 ec f1 ec f1 ec f1 ec f1 ec f1 656 sav eav codes for vse=0, valign=1 ec da c7 da c7 da 9d 80 9d 80 sav e av task b vip 656 sav eav codes for vse=0, valign=1, alt656=1, vbil15-vbil1=1, taskb=1 y[0..7] 310 311 312 313 314 315 316 317 318 319 320 digital output analog input 333 334 335 336 333 334 335 336 337 vse =0, alt656 =0 vse =0, alt656 =1 b6 ab b6 ab f1 ec f1 ec f1 ec f1 ec f1 ec f1 ec f1 62 54 49 54 49 54 49 54 49 54 49 54 c7 da c7 9d 80 9d 80 b6 ab b6 ab
electronics S5D0127X01 data sheet multimedia video page 46 of 96 modified on may/04/2000 1.10.3. 656 op code vertical transitions the vertical transition locations of the various 656 op codes are shown in figure 36 and figure 37. note that for proper transition locations of the sav and eav op codes vse =0 and valign =1. 1.11. host interface the S5D0127X01 supports the iic serial interface for programming the chip registers. 1.11.1. iic interface the two wire interface consists of the sclk and sdat signals. data can be written to or read from the S5D0127X01. for both read and write, each byte is transferred msb first, and the data bit is valid when the sclk is high. to write to the slave device, the host initiates a transfer cycle with a start signal. the start signal is high to low transition on the sdat while the sclk is high. the host then sends a byte consisting of the 7-bit slave device id and a 0 in the r/ w bit. the arrangement for the slave device id and the r/w bit is depicted in figure 38. aex1 and aex0 are configuration pins used to configure the S5D0127X01 to use one of the four addresses. up to four S5D0127X01?s can be used in one system each with a unique address. figure 38. iic slave device id and r/ w byte table 13: 656 and taskb 656 op codes condition sav / eav output sequence -- reference output timing pic- tures 656 fvh values field vertical horizontal a b c d d? f v h field 2 vertical blank end active video ffh 00h 00h f1h 7fh 1 1 1 field 2 vertical blank start active video ffh 00h 00h ech 62h 1 1 0 field 2 vertical active end active video ffh 00h 00h dah 54h 1 0 1 field 2 vertical active start active video ffh 00h 00h c7h 49h 1 0 0 field 1 vertical blank end active video ffh 00h 00h b6h 38h 0 1 1 field 1 vertical blank start active video ffh 00h 00h abh 24h 0 1 0 field 1 vertical active end active video ffh 00h 00h 9dh 13h 0 0 1 field 1 vertical active start active video ffh 00h 00h 80h 0eh 0 0 0 1 1 0 1 1 aex1 aex0 r/ w msb lsb slave device id
electronics S5D0127X01 data sheet multimedia video page 47 of 96 modified on may/04/2000 the second byte the host sends is the base register index. the host then sends the data. the S5D0127X01 increments the index automatically after each byte of data is sent. therefore, the host can write multiple bytes to the slave if they are in sequential order. the host completes the transfer cycle with a stop signal which is a low to high transition when the sclk is high. each byte transfer consists of 9 clocks. when writing to the S5D0127X01, an acknowledge signal is asserted by the salve device during the 9th clock. figure 39. iic data write a read cycle takes two start-stop phases. the first phase is a write to the index register. the second phase is the read from the data register. the host initiates the first phase by sending the start signal. it then sends the slave device id along with a 0 in the r/ w position. the index is then sent followed by the stop signal. the second phase also starts with the start signal. it then sends the slave device id but with a 1 in the r/ w position to indicate data is to be read from the slave device. the host uses the sclk to shift data out from the S5D0127X01. a typical second phase in a read transaction is depicted in figure 40. auto index increment is supported in read mode. figure 40. iic data read sclk sdat device id index data data start stop ack ack ack sclk sdat device id index start stop ack ack sclk sdat device id data start stop nack
electronics S5D0127X01 data sheet multimedia video page 48 of 96 modified on may/04/2000 2. control register description this section contains information concerning the programmable control registers. table 14 provides the default power up values for each index, and a bit map for each register. the following pages describe each register in detail and the possible programing values (an * indicates the power-on default). gamma correction registers are write only. when the index register points to any of the gamma correction register, the gamma look-up table is put into a program mode. normal operation resumes when the index is outside the range from 0x40 to 0xff. table 14: register summary index mnemonic default bit map 7 6 5 4 3 2 1 0 0x00 stat ro chipid vbiflg novid ffrdet paldet cdet hlock clock 0x01 cmda 2c powdn vse hfsel[1:0] xt24 pixsel mnfmt ifmt 0x02 cmdb 20 agcgn valign agcovf agcfrz insel[3:0] 0x03 cmdc 00 vmen tstge1 0 tstgpk tstgph tstgfr[1:0] tstgen 0x04 cmdd 00 eav 0 ckdir inpsl[1:0] syndir y1mhz gpport 0x05 havb 00 havb[7:0] 0x06 have 00 have[7:0] 0x07 hs1b 00 hs1b[8:1] 0x08 hs1e 00 hs1e[8:1] 0x09 hs2b 00 hs2b[8:1] 0x0a hs2e 00 hs2e[8:1] 0x0b agc 50 agc[7:0] 0x0c hxtra 00 havb[10:8] have[10:8] hs1be0 hs2be0 0x0d cdem 00 outhiz fsec 0 cifcmp[1:0] 0 0 0 0x0e portab 00 dirb datab[2:0] dira dataa[2:0] 0x0f luma 00 0 unit rgbh ped hybwr ctrap hypk[1:0] 0x10 con 00 cont[7:0] 0x11 brt 00 brt[7:0] 0x12 chroma 08 accfrz palm paln cbw core[1:0] ckill[1:0] 0x13 chromb 00 cdly[3:0] schcmp[3:0] 0x14 demod 00 fscdet secdet cdmlpf ctrack mnfsc[1:0] mnsecam[1:0] 0x15 sat 00 sat[7:0] 0x16 hue 00 hue[7:0] 0x17 vertia 00 mnycmb ycmbco[2:0] vrt2x vctrl[2:0] 0x18 vertib 00 hylpf[2:0] hybwi hydec vsclen[1:0] 0 0x19 vertic 03 mnccmb ccmbco[2:0] acmben vybw evavev evavod 0x1a hscll 00 hscl[6:0] cmbmod 0x1b hsclh 00 hscl[14:7] 0x1c vscll fc vscl[5:0] acmbco acmbre 0x1d vsclh ff vscl[13:6] 0x1e ofmta - gamen[1:0] oenc[1:0] ofmt[3:0] 0x1f ofmtb 00 vsvav evand[1:0] evhs1 evhav evehav evavg evandl
electronics S5D0127X01 data sheet multimedia video page 49 of 96 modified on may/04/2000 0x20 vbictl 00 vbcvbs vyfmt[1:0] vbinsrt odden evenen oddos[1:0] 0x21 ccdat1 ro b0 b1 b2 b3 b4 b5 b6 p1 0x22 ccdat2 ro b0 b1 b2 b3 b4 b5 b6 p2 0x23 vbil30 00 vbil3 vbil2 vbil1 vbil0 0x24 vbil74 00 vbil7 vbil6 vbil5 vbil4 0x25 vbil118 00 vbil11 vbil10 vbil9 vbil8 0x26 vbil1512 00 vbil15 vbil14 vbil13 vbil12 0x27 ttfram 00 ttfram[7:0] 0x28 testa 00 0 0 0 0 0 0 0 0 0x29 uvoffh 00 tstclc tstcgn 0 tstcfr uoffst[5:4] voffst[5:4] 0x2a uvoffl 33 uoffst[3:0] voffst[3:0] 0x2b ugain 00 ugain[7:0] 0x2c vgain 00 vgain[7:0] 0x2d vavb 23 vavb[6:1] vavod0 vavev0 0x2e vave 82 vave[8:1] 0x2f ctrack 00 0 0 dmctl[1:0] cgtc[1:0] cftc[1:0] 0x30 polctl 00 evavpl vspl oddpl havpl ehavpl hs2pl vavpl hs1pl 0x31 refcod 00 ycrang 0 0 0 0 0 0 0 0x32 invaly 10 invaly[7:0] 0x33 invalu 80 invalu[7:0] 0x34 invalv 80 invalv[7:0] 0x35 unusey 10 unusey[7:0] 0x36 unuseu 80 unuseu[7:0] 0x37 unusev 80 unusev[7:0] 0x38 exctrl 00 0 enincst 0 - aucpwd 0 0 clevel 0x39 tracka 00 stctrl mac_det vcr_det vcr_lev[1:0] atctrap vctrap agclsb 0x3a vbictlb 00 vbiswap tt_sys[1:0] vbimid new_cc cc_ovfl yoffenb coffenb 0x3b trackb 00 alt656 vbi_ph vbi_fr ph_ctrl vnoisct agc_lpg[1:0] agc_lkg 0x3c rtc 00 rtc_dto rtc_pid 0 tdmod 0 0 0 0 0x3d cmde 09 odfst vsalg hcore[1:0] chiprevid 0x3e vsdel 00 tr_ms novidc vsdec[5:0] 0x3f cmdf 00 ctrapfsc vipmode evavy uvdlen uvdlsl regud taskb cbwi 0x40-5f gamma - gamma0[7:0] - gamma31[7:0] 0x60-7f gammad - - - gammad0[5:0] - gammad31[5:0] 0xc0-df gamuv - gamuv0[7:0] - gamuv31[7:0] 0xe0-ff gamuvd - - - gamuvd0[5:0] - gamuvd31[5:0] table 14: register summary index mnemonic default bit map 7 6 5 4 3 2 1 0
electronics S5D0127X01 data sheet multimedia video page 50 of 96 modified on may/04/2000 read only status bits index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 00h stat chipid vbiflg novid ffrdet paldet cdet hlock clock clock status for color lock. 0 not locked. 1 color lock achieved. hlock status for current line tracking mode. 0 chip is in initial tracking mode. 1 chip is in steady state tracking mode. cdet status for detection of color. 0 no color signal is detected. 1 color signal is detected. paldet status for current detected color format. information contained in this bit is valid only if clock is 1. 0 ntsc color format. 1 pal color format. ffrdet status for current detected field frequency. 0 50 hz field frequency, i.e. n,b,g,h,i,d,k,k1,l system. 1 60 hz field frequency, i.e. m system. novid video detect flag. this bit should not be used for detecting the presence of a tv channel from the output of a tv tuner . 0 sync has been detected for the last 32 lines. 1 no sync has been detected. vbiflg vertical blanking interval flag. 0 video is in active region. 1 video is in vertical blanking region. chipid chip version id. please refer to the chiprevid bits for additional information 0 ks0122s. 1 s5d0124d01.
electronics S5D0127X01 data sheet multimedia video page 51 of 96 modified on may/04/2000 control register a index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 01h cmda powdn vse hfsel[1:0] xt24 pixsel mnfmt ifmt ifmt manual video input standard select. standard selection can be controlled automatically if mnfmt =0. 0 chip is forced to assume input is 50 hz.* 1 chip is forced to assume input is 60 hz. mnfmt manual input format control override. when this bit is 1 the ifmt bit is enabled. 0 the chip determines the input video standard based on the detected field rate:* ntsc if 60 hz. pal/secam if 50 hz. 1 input video standard is selected with the ifmt bit. pixsel select pixel sampling rate. 0 output data is at square pixel rate. 1 output data is at ccir 601 rate.* xt24 select the external clock reference frequency. 0 external clock is 26.8 mhz. 1 external clock is 24.576 mhz.* hfsel[1:0] horizontal tracking loop frequency select. 0 force loop to very fast. 1 force loop to fast. 2 force loop to vcr time constant.* 3 force loop to tv time constant. vse change the vertical end location of the vs. 0 line 10/10.5.* 1 line 9/9.5. powdn power down mode. 0 normal operation.* 1 all chip functions except microprocessor interface and ck/ck2 generation are disabled. the output of the ck/ck2 pins retains the most recent frequency when the power down mode is enabled.
electronics S5D0127X01 data sheet multimedia video page 52 of 96 modified on may/04/2000 control register b index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 02h cmdb agcgn valign agcovf agcfrz insel[3:0] insel[3:0] analog input channel select. 0 ay0 is composite input.* 1 ay1 is composite input. 2 ay2 is composite input. 4 ac0 is composite input. 5 ac1 is composite input. 6 ac2 is composite input. 8 ay0 is luminance input, ac0 is chrominance input. 9 ay1 is luminance input, ac1 is chrominance input. a ay2 is luminance input, ac2 is chrominance input. f ay2 is luminance input, ac1 is cb input, ac2 is cr input. agcfrz freeze the analog agc for the y and c paths at their current values. 0 agc is running. reading agc register returns the current agc gain.* 1 agc is frozen. gain can be changed or read with agc register. agcovf agc gain control mode. 0 agc gain tracks to sync tip and back porch delta. 1 if adc overflows, agc gain will be reduced (this has higher priority over normal sync tip - back porch tracking).* valign vs edge alignment control. 0 vs leading edge occurs during serration pulses (typically within the first serration pulse). vs trailing edge is aligned to half line or beginning of the line depending on the field.* 1 vs leading edge is aligned to half line or beginning of the line depending on the field. vs trailing edge is always aligned to beginning of the line. agcgn agc gain calculation. 0 normal mode. agc gain calculation is based on sync tip to back porch difference equal to 68 adc code.* 1 agc gain calculation is base on sync tip to back porch difference equal to 54 adc code. this will reduce the agc gain by a factor of 1/1.25 compare to normal mode. when used in conjunction with ped and rgbh , this effectively increases the input dynamic range.
electronics S5D0127X01 data sheet multimedia video page 53 of 96 modified on may/04/2000 control register c index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 03h cmdc vmen tstge1 0 tstgpk tstgph tstgfr[1:0] tstgen tstgen enable manual control of horizontal phase and frequency tracking. 0 auto phase and frequency tracking.* 1 enable manual control of horizontal phase and frequency with tstgfr[1:0] and tstgph . tstgfr[1:0] when tstgen == 1, these two bits control the horizontal frequency tracking. 00 stop frequency tracking and freeze the frequency at the current value.* 01 horizontal frequency tracks the input. 1x horizontal frequency tracking ignores video input and runs at nominal value based on the field rate and output pixel rate selected by ifmt and pixel bits. tstgph when tstgen == 1, this bit controls the horizontal phase tracking. 0 no phase tracking.* 1 horizontal phase tracks the input video or hs1 input if in slave mode. tstgpk if tstge1 == 1, this bit controls agc. 0 agc clamps to back porch and gain is set based on sync tip-back porch difference.* 1 agc clamps to sync tip and gain is set based on peak-valley difference. tstge1 enables the function of tstgpk . 0 disables tstgpk .* 1 enables tstgpk . vmen vertical master mode. 0 normal vertical sync operation.* 1 vertical sync ignores input and free runs at 50 hz or 60 hz. this mode can be used to generate video timing for a slave device.
electronics S5D0127X01 data sheet multimedia video page 54 of 96 modified on may/04/2000 control register d index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 04h cmdd eav 0 ckdir inpsl[1:0] syndir y1mhz gpport gpport general purpose port. this register is useful only if dataa[2:0] == 7. if dira == 0, this bit is read only and reflects the logic state at porta pin. if dira == 1, any value written to this bit will appear at porta pin. y1mhz luma bandwidth control. 0 luma bandwidth is controlled by other luma filters in the luma path.* 1 luma data is low pass filtered to 1mhz bandwidth. syndir hs1 and vs pin direction control. 0 hs1 and vs are output.* 1 hs1 and vs are input. inpsl[1:0] video input and clock source select. 0 video source is analog and connected to the chip?s analog input. clock is internally generated.* 1 video source is 8-bit digital cbycr and connected to exv0 through exv7 pins. 3 video source is 8-bit digitized cvbs and connected to exv0 through exv7 pins. ckdir clock select. 0 clock is from internal clock generator. a reference clock at xtali pin is required.* 1 clock is from ck pin. when this is selected, the ck pin automatically becomes an input. eav in 8-bit digital cbycr input mode, this bit selects the sync source. 0 horizontal and vertical syncs are from hs1 and vs pins, respectively.* 1 syncs are embedded in the 8-bit digital data stream (ccir 656 compatible).
electronics S5D0127X01 data sheet multimedia video page 55 of 96 modified on may/04/2000 hav start control index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 05h havb havb[7:0] 0ch hxtra havb[10:8] have[10:8] hs1be0 hs2be0 havb[10:0] this 11-bit register is used to define the start location of the hav signal relative to the sync tip (for cvbs input, this is the composite video sync tip. for 8-bit cbycr input, this is the leading edge of the hs1 or eav). the content of this register is a 2?s complement number which is used as an offset to the default. the resolution for this register is 1 ck clock. hav end control index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 06h have have[7:0] 0ch hxtra havb[10:8] have[10:8] hs1be0 hs2be0 have[10:0] this 11-bit register is used to define the end location of the hav signal relative to the sync tip. the content of this register is a 2?s complement number which is used as an offset to the default the resolution for this register is 1 ck clock. hs1 start control index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 07h hs1b hs1b[8:1] 0ch hxtra havb[10:8] have[10:8] hs1be0 hs2be0 hs1b[8:1] - hs1be0 if hs1 is programmed as an output, this 9-bit register defines the start location of the hs1 signal. the content of this register is a 2?s complement number which is used as an offset to the default. the resolution for this register is 1 ck clock.
electronics S5D0127X01 data sheet multimedia video page 56 of 96 modified on may/04/2000 hs1 end control index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 08h hs1e hs1e[8:1] 0ch hxtra havb[10:8] have[10:8] hs1be0 hs2be0 hs1e[8:1] - hs1be0 if hs1 is programmed as an output, this 9-bit register defines the end location of the hs1 signal. the content of this register is a 2?s complement number which is used as an offset to the default. the resolution for this register is 1 ck clock. hs2 start control index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 09h hs2b hs2b[8:1] 0ch hxtra havb[10:8] have[10:8] hs1be0 hs2be0 hs2b[8:1] - hs2be0 this 9-bit register defines the start location of the hs2 signal. the content of this register is a 2?s complement number which is used as an offset to the default hs2b location. the resolution for this register is 1 ck clock. hs2 end control index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0ah hs2e hs2e[8:1] 0ch hxtra havb[10:8] have[10:8] hs1be0 hs2be0 hs2e[8:1] - hs2be0 this 9-bit register defines the end location of the hs2 signal. the content of this register is a 2?s complement number which is used as an offset to the default hs2e location. the resolution for this register is 1 ck clock.
electronics S5D0127X01 data sheet multimedia video page 57 of 96 modified on may/04/2000 agc control index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x0b agc agc[7:0] agc[7:0] this register is used to manually set agc when agcfrz is set to ?1?. the content in the register is unsigned. chroma demodulation control index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0dh cdem outhiz fsec 0 cifcmp[1:0] 0 0 0 cifcmp[1:0] if compensation for the chroma path. 0 no compensation.* 1 upper chroma side band is 1 db higher than lower side band. 2 upper chroma side band is 3 db higher than lower side band. 3 upper chroma side band is 6 db higher than lower side band. fsec chroma frequency demodulation filter select for secam video. 0 select secam chroma frequency demodulation filter if secam video is detected.* 1 always use secam chroma frequency demodulation filter. outhiz this is the software output three-state control bit. if this bit is set to a ?1?, or the oen pin is at a logic low level, output pins can be selectively put in the high impedance state using the additional software control bits oenc[1:0] . 0 this is default setting.* 1 this will enable the output pins to be three-stated regardless the state of the oen pin.
electronics S5D0127X01 data sheet multimedia video page 58 of 96 modified on may/04/2000 port a and b control index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0eh portab dirb datab[2:0] dira dataa[2:0] dataa[2:0] port a data select. for internal gate signal locations. 0 port a is disconnected from the internal signal path.* 1 port a is connected to the bpg (back porch gate) signal. 2 port a is connected to the syg (sync tip gate) signal. 3 port a is connected to the cbg (color burst gate) signal. 4 port a is connected to the cbgw (color burst gate wide) signal. the cbgw is high for the entire color burst period. 5 port a is connected to the slice (mid way of the sync tip) signal. 6 port a is connected to the vbi (vertical blanking interval) signal. 7 port a is connect to the gpport bit. dira port a direction control. 0 port a is configured as input. the input is connected directly to the signal path selected by dataa[2:0] . the internally generated gate signal is disconnected from the signal path.* 1 port a is an output and is driven by the internally generated signal as selected by dataa[2:0] . datab[2:0] port b data select. for internal gate signal locations. 0 port b is disconnected from the internal signal path.* 1 port b is connected to the sch (sync tip to color burst phase) signal. 2 port b is connected to the fh2 (twice per line pulses) signal. 3 port b is connected to the fs_pulse (falling edge of the sync tip) signal. 4 port b is connected to the vbi_cvbs (vbi raw adc) signal. this signal is high for those lines that output data directly from the adc (not yuv or rgb data). 5 port b is connected to the vbi_proc (vbi sliced) signal. this signal is high for those video lines that output sliced vbi data. 6 port b is connected to the vs (vertical sync) signal. 7 port b is configured as the rtco (real time control output). this single pin serial interface transmits phase and frequency information to a video encoder so that it may operate directly from the S5D0127X01 output clock . dirb port b direction control. 0 port b is configured as input. the input is connected directly to the signal path selected by datab[2:0] . the internally generated gate signal is disconnected from the signal path.* 1 port b is an output and is driven by the internally generated signal as selected by datab[2:0] .
electronics S5D0127X01 data sheet multimedia video page 59 of 96 modified on may/04/2000 luma control register index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x0f luma 0 unit rgbh ped hybwr ctrap hypk[1:0] hypk[1:0] luminance horizontal peaking control around 3 mhz. 0 less than nominal peaking.* 1 nominal peaking. 2 increased peaking. 3 maximum peaking. ctrap chroma trap (notch filter) in the luma path. 0 no chroma trap. this mode is recommended for s-video or component video input.* 1 chroma trap is enabled. hybwr luminance horizontal bandwidth reduction control. 0 full bandwidth.* 1 reduced bandwidth. ped enable gain correction for 7.5 blank-to-black setup (pedestal). 0 no pedestal. 0% = y code 16. 100% = y code 235.* 1 gain adjusted for 7.5% blank-to-black setup (pedestal). 7.5% = y code 16. 7.5% - 100% input produce y code 16 - 235. rgbh high gain to produce full range y for 0% (or 7.5% if ped = 1) to 100% input. 0 black (0% or 7.5%) to peak white(100%) input produce y code 16 to 235.*. 1 black (0% or 7.5%) to peak white(100%) input produce y code 0 to 255. unit when ped and rgbh are both set to a ?1?, setting this bit to a ?1? produces a unit gain for ccir 601 digital input ( inpsl[1:0] = 1). 0 luma dc gain is controlled by ped and rgbh as described for each bit.* 1 luma dc gain is unity for ccir 601 digital input.
electronics S5D0127X01 data sheet multimedia video page 60 of 96 modified on may/04/2000 contrast control index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x10 con con[7:0] con[7:0] this 8-bit register contains a 2?s compliment number for contrast control. brightness control index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x11 brt brt[7:0] brt[7:0] brightness control register. the number contained in the register is 2?s compliment.
electronics S5D0127X01 data sheet multimedia video page 61 of 96 modified on may/04/2000 chroma control register a index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x12 chroma accfrz palm paln cbw core[1:0] ckill[1:0] ckill[1:0] color kill. 0 auto detect mode. if color burst is too low or no color burst, chroma data is forced to code 128.* 2 chroma is always on. 3 chroma data is always forced to code 128. core[1:0] chroma data coring. 0 no coring. 1 chroma data within the range 128+/-1, inclusive, will be force to 128. 2 chroma data within the range 128+/-3, inclusive, will be force to 128.* 3 chroma data within the range 128+/-7, inclusive, will be force to 128. cbw chroma bandwidth control. 0 chroma 3 db bandwidth is 850 khz.* 1 chroma 3 db bandwidth is 550 khz. paln select color tracking for pal-n, or ntsc-n when input field rate is 50 hz and fsc is 3.58 mhz. 0 select ntsc-n.* 1 select pal-n. palm select color tracking for pal-m or ntsc-m when input field rate is 60 hz. 0 select color tracking for ntsc-m.* 1 select color tracking for pal-m. accfrz chroma gain tracking freeze control. 0 chroma gain tracks the input. color saturation can be adjusted with sat .* 1 chroma gain freezes at the current saturation level.
electronics S5D0127X01 data sheet multimedia video page 62 of 96 modified on may/04/2000 chroma control register b index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x13 chromb cdly[3:0] schcmp[3:0] schcmp[3:0] phase constant compare value for color burst phase relative to sync tip. each step is 22.5 degrees with the value of 0 equal to 0 degree. cdly[3:0] chroma path group delay relative to the luma path (in unit of ck): 0 no delay.* 1 -0.5 2 1 3 0.5 4 2 5 1.5 6 3 7 2.5 8 -4 9 -4.5 a -3 b -3.5 c -2 d -2.5 e -1 f -1.5
electronics S5D0127X01 data sheet multimedia video page 63 of 96 modified on may/04/2000 chroma demodulation control and status index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x14 demod fscdet secdet cdmlpf ctrack mnfsc[1:0] mnsecam[1:0] mnsecam[1:0] enable manual secam input detection. 0 detection of secam input is automatic.* 2 force the chip to assume input is not secam. 3 force the chip to assume input is secam. mnfsc[1:0] enable manual fsc detection. 0 detection of fsc frequency is automatic.* 2 force chip to assume input fsc is 4.43 mhz or 4.286 mhz. 3 force chip to assume input fsc is 3.58 mhz. ctrack chroma frequency tracking mode. 0 chroma frequency tracking is based on the field rate and fsc.* 1 chroma frequency tracking is based on field rate only. cdmlpf bypass the lpf in the chroma demodulator. 0 chroma data pass through the lpf for color demodulation.* 1 chroma data bypass the lpf. this setting is used for component video input. secdet secam detection (read only). 0 chip did not detect secam input. 1 chip detected secam input. fscdet color subcarrier detection (read only). 0 chip detected 4.43 mhz or 4.286 mhz fsc. 1 chip detected 3.58 mhz fsc.
electronics S5D0127X01 data sheet multimedia video page 64 of 96 modified on may/04/2000 color saturation control index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x15 sat sat[7:0] sat[7:0] color saturation control register. register content is in 2?s compliment if tstcgn =0. 0 value corresponds to nominal saturation. hue control index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x16 hue hue[7:0] hue[7:0] hue control register. the register content is in 2?s compliment format. it covers the range from -180 to +178.59 degree. the resolution is 1.41 /lsb.
electronics S5D0127X01 data sheet multimedia video page 65 of 96 modified on may/04/2000 vertical processing control a index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x17 vertia mnycmb ycmbco[2:0] vrt2x vctrl[2:0] vctrl[2:0] luminance vertical filter control. 0 scaler uses lpf path, comb uses hpf.* 1 scaler uses full bandwidth, comb is disabled. 2 scaler is disabled, comb uses full bandwidth. 3 scaler uses lpf, comb is disabled. 4 scaler is disabled, comb uses hpf. vrt2x 3/5-tap vertical scaler filter select. 0 select 3-tap vertical scaler filter.* 1 select 5-tap vertical scaler filter. this option can be used only if horizontally cropped line is less than or equal to 384 pixels. ycmbco[2:0] luma comb filter coefficients selection when the mnycmb is set to ?1?. 0 [1/4 1/2 1/4].* 1 [3/8 1/2 1/8]. 2 [1/2 1/2 0]. 3 [1 0 0]. 4 [0 1 0]. 5 [1/2 0 1/2]. 6 [0 1/2 1/2]. 7 [1/8 1/2 3/8]. mnycmb select between auto and manual luma comb filter coefficients. 0 luma comb filter coefficients are automatically selected based on input video standard.* 1 luma comb filter coefficients are selected with ycmbco[2:0] .
electronics S5D0127X01 data sheet multimedia video page 66 of 96 modified on may/04/2000 vertical processing control b index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x18 vertib hylpf[2:0] hybwi hydec vsclen[1:0] 0 vsclen[1:0] vertical scaling enable. 0 vertical scaling is enabled.* 1 vertical scaling is disabled. 2 vertical scaling is disabled. video is 1-line delayed. 3 vertical scaling is disabled. video is 2-line delayed. hydec luma path decimation filter enable. 0 luma path decimation is enabled.* 1 luma path decimation is disabled. hybwi luma path decimation filter bandwidth select. 0 normal bandwidth.* 1 bandwidth is 1 mhz higher. hylpf[2:0] horizontal luma lpf bandwidth control. 0 full bandwidth.* 1 4.5 mhz bandwidth. 2 3.5 mhz bandwidth. 3 2.5 mhz bandwidth. 4 1.5 mhz bandwidth.
electronics S5D0127X01 data sheet multimedia video page 67 of 96 modified on may/04/2000 vertical processing control c index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x19 vertic mnccmb ccmbco[2:0] acmben vybw evavev evavod evavod enable vav signal output during odd field. 0 vav signal is disabled (always inactive) during odd field. 1 vav signal is enabled during odd field.* evavev enable vav signal output during even field. 0 vav signal is disabled (always inactive) during even field. 1 vav signal is enabled during even field.* vybw luma vertical bandwidth control. 0 full bandwidth.* 1 reduced bandwidth. acmben enable luma active comb for ntsc. 0 active comb is disabled.* 1 active comb is enabled. ccmbco[2:0] manual chorma comb filter coefficients select. 0 select the coefficient set [1/2 1/2 0] (if vrt2x = 0).* 1 select the coefficient set [1/4 1/2 1/4] (if vrt2x = 0). 2 select the coefficient set [0 1/2 1/2 0 0] (if vrt2x = 1). 3 select the coefficient set [0 1/4 1/2 1/4 0] (if vrt2x = 1). 4 select the coefficient set [1 0 0]. 5 select the coefficient set [0 1 0]. 6 select the coefficient set [0 0 1]. 7 no output (disabled). mnccmb chroma comb filter coefficients are selected automatically or manually. 0 filter coefficients are automatically selected based on the selected video input standard. secam must use this value.* 1 filter coefficients are selected manually with ccmbco[2:0] .
electronics S5D0127X01 data sheet multimedia video page 68 of 96 modified on may/04/2000 horizontal scaling ratio index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x1a hscll hscl[6:0] cmbmod 0x1b hsclh hscl[14:7] cmbmod this bit controls when comb is enabled internally. 0 comb is enabled by the internal signal comb_en.* 1 comb is enabled when vav is active. hscl[14:0] the 15-bit register defines a horizontal scaling ratio of hscl[14:0]/2 15 . any change to this value will become effective during the next vertical sync. vertical scaling ratio index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x1c vscll vscl[5:0] acmbco acmbre 0x1d vsclh vscl[13:6] acmbre active comb filter threshold select. 0 high threshold.* 1 low threshold. acmbco active comb filter coefficient set select. 0 use the set of coefficients for 100% comb.* 1 use the set of coefficients for 75% comb. vscl[13:0] the 14-bit register defines a vertical scaling ratio of vscl[13:0]/2 14 . any change to this value will become effective during the next vertical sync.
electronics S5D0127X01 data sheet multimedia video page 69 of 96 modified on may/04/2000 output control a index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x1e ofmta gamen[1:0] oenc[1:0] ofmt[3:0] ofmt[3:0] digital video output format select. 16 and 24 bit data are output at ck2 clock rate. 8 bit data are output at ck clock rate. 0 16-bit ycbcr 4:2:2 output on the y and c output ports.* 1 12-bit ycbcr 4:1:1 output on the y and c output ports. 2 8-bit ycbcr 4:2:2 without embedded timing reference codes. 3 8-bit ycbcr 4:2:2 with embedded timing reference codes. 4 24-bit ycbcr 4:4:4. 5 16-bit rgb 565. 6 24-bit rgb 888 with linear bit ordering. 7 24-bit rgb 888, bit ordering is an extension of the 16-bit rgb 565 format. 8 same as mode 2 with the additional of 8-bit ycbcr 4:2:2 data output on the exv port. while the y port can be scaled down, the exv port will always be a full size picture. 9 same as 8 with the addition of sav and eav codes. a output y adc data all the time (including syncs) on the y port, c port is non-scaled 656 data with no timing codes. b output y adc data all the time (including syncs) on the y port, output c adc data all the time (including syncs) on the c port, oenc[1:0] when either the oen pin is low or the outhiz is a ?1?, these two bits will determine which output pins are three-stated. 0 all video pins are three-stated. 1 all video pins, plus hav, vav, evav, ehav, pid, odd, hs1, hs2, vs, and sch are three-stated. 2 all pins listed above, plus ck and ck2 are three-stated. 3 always output data. gamen[1:0] gamma correction enable. 0 no gamma correction.* 1 gamma correction is applied to y/g data. 2 gamma correction is applied to u/b and v/r data. 3 gamma correction is applied to y/g, u/b, and v/r data.
electronics S5D0127X01 data sheet multimedia video page 70 of 96 modified on may/04/2000 output control b index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x1f ofmtb vsvav evand[1:0] evhs1 evhav evehav evavg evandl evavg gate evav with vav before sending to output. 0 evav is not gated with vav. evav may be active outside of active vav region.* 1 evav is gated with vav. evav can be active only when vav is active. evehav additional qualifier for ehav. 0 no additional qualifier.* 1 ehav uses qualifier from evand[1:0 ]. evhav additional qualifier for hav. 0 no additional qualifier.* 1 hav uses qualifier from evand[1:0] . evhs1 additional qualifier for hs1. 0 no additional qualifier.* 1 hs1 uses qualifier from evand[1:0] . evand[1:0], evandl qualifier signal that defines active video lines. this control enables 656 codes, hav, ehav and hs1. evandl is the evand lsb. these three bits are grouped together and explained below 0 qualifier is active for all lines.* 1 qualifier is evav. -- any line during vertical active or blank will be output. 2 qualifier is evav and vav -- all lines during vertical blank (vav==0) and all lines when evav is active during vertical active will be output. 3 qualifier is vav -- all lines during vertical active will be output. 4 qualifier is evav and vav -- all lines that evav is active during vertical active will be output. 5 qualifier is evav, vav and vbi_raw_en -- all lines as in option 4 plus the vbi raw adc lines. 6 qualifier is evav, vav, vbi_raw_en and vbi_slc_en-- all lines as in option 5 plus the vbi sliced lines. 7 all vbi sliced and vbi raw lines only. vsvav enable vav to be output to vs. 0 output normal vs.* 1 vs has the same output as vav
electronics S5D0127X01 data sheet multimedia video page 71 of 96 modified on may/04/2000 vbi decoder control index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x20 vbictl vbcvbs vyfmt[1:0] vbinsrt odden evenen oddos[1:0] oddos[1:0] line offset for odd field. see also vbil [15:0]. 0 odd field line offset is -1 compared to even field.* 1 no offset. 2 odd field line offset is 1 compared to even field. 3 odd field line offset is 2 compared to even field. evenen vbi data processing for even field. 0 no processing.* 1 vbi processing is enabled for even field. odden vbi data processing for odd field. 0 no processing.* 1 vbi processing is enabled for odd field. vbinsrt enable vbi data to be output on the y bus. 0 vbi data is not output on the y bus.* 1 vbi data is output on the y bus. vyfmt[1:0] when vbinsrt = 1, these bits control how vbi data are output on the y bus. 0 1 bit on y7 per ck2 clock.* 1 1 bit on y7 plus a ?1? on y3 per ck2 clock. 2 4 bits on y7..y4, with first bit on y7, last bit on y4, plus a ?1? on y3 per ck2 clock. 3 8 bits on y7..y0, with first bit on y7, last bit on y0, per ck2 clock. vbcvbs enable digitized cvbs data from adc to be output for the selected vbi line instead of sliced vbi data. the new vbimid bit allows simultaneous output (line by line bases) of sliced data and raw adc data. 0 output sliced vbi data for any line whose vbil value ~= 0.* 1 output digitized cvbs data for any line whose vbil value ~=0.
electronics S5D0127X01 data sheet multimedia video page 72 of 96 modified on may/04/2000 first decoded close-caption data byte (read only) index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x21 ccdat1 b0 b1 b2 b3 b4 b5 b6 p1 ccdat1 this byte contains the first byte of the decoded close-caption data as defined in eia-608. in order for this register to receive the cc data, vbinsrt must be programmed to a ?1?, and vyfmt[1:0 ] must be programmed with the value 3. the same applies to ccdat2 . for normal ntsc closed caption decoding, odden should be set to a ?1?, vbil12 should be programmed with the value 1. second decoded close-caption data byte (read only) index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x22 ccdat2 b0 b1 b2 b3 b4 b5 b6 p2 ccdat2 this byte contains the second byte of the decoded close-caption data as defined in eia-608. vbi data decoding index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x23 vbil30 vbil3 vbil2 vbil1 vbil0 0x24 vbil74 vbil7 vbil6 vbil5 vbil4 0x25 vbil118 vbil11 vbil10 vbil9 vbil8 0x26 vbil1512 vbil15 vbil14 vbil13 vbil12 vbil0..vbli15 these 16 2-bit numbers select how the chip should decode the vbi data for each vbi line. for 60 hz video, vbil1 through vbil15 correspond to lines 10 through 24 in the odd field, and lines 273 through 286 in the even filed for ntsc (refer to ntsc line numbering convention). for 50 hz video, vbil1 corresponds to line 7 in the odd field, and line 320 in the even field. vbil0 is used for all other lines not covered by vbil1 through vbil15 . 0 decode normal video.* 1 decode closed caption data. 2 decode teletext data. 3 decode wss data.
electronics S5D0127X01 data sheet multimedia video page 73 of 96 modified on may/04/2000 teletext frame alignment pattern index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x27 ttfram ttfram[7:0] ttfram[7:0] user programmable teletext frame alignment pattern. uv offset adjustment index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x29 uvoffh tstclc tstcgn 0 tstcfr uoffst[5:4] voffst[5:4] 0x2a uvoffl uoffst[3:0] voffst[3:0] voffst[5:0], uoffst[5:0] these two 6-bit 2?s compliment values are for offset adjustment to the u and v components of the chroma data. the resolution is 1/4 lsb of the 8-bit u and v. tstcfr chroma frequency tracking control. 0 chroma frequency tracking is enabled.* 1 chroma frequency tracking is open loop. tstcgn chroma gain control. 0 chroma gain tracks input.* 1 chroma gain is controlled by sat only. tstclc cloche filter bypass. 0 cloche filter is enabled for secam input.* 1 dc bypass of the cloche filter.
electronics S5D0127X01 data sheet multimedia video page 74 of 96 modified on may/04/2000 u component gain adjustment index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x2b ugain ugain[7:0] ugain[7:0] u component gain adjustment. the nominal value is 0. v component gain adjustment index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x2c vgain vgain[7:0] vgain[7:0] v component gain adjustment. the nominal value is 0. vav begin index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x2d vavb vavb[6:1] vavod0 vavev0 vavev0 the lsb for vavb and vave for the even field. vavod0 the lsb for vavb and vave for the odd field. vavb[6:1] the 6 msb?s of a 7-bit unsigned number which defines the start of vav. the value ?0? corresponds to line 4. vav end index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x2e vave vave[8:1] vave[8:1] the 8 msb?s of a 9-bit unsigned number which defines the end of vav. the value ?0? corresponds to line 4.
electronics S5D0127X01 data sheet multimedia video page 75 of 96 modified on may/04/2000 chroma tracking control register index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x2f ctrack 0 0 dmctl[1:0] cgtc[1:0] cftc[1:0] cftc[1:0] chroma frequency tracking time constant. 0 slower.* 1 slow. 2 fast. 3 faster. cgtc[1:0] chroma gain tracking time constant. 0 slower.* 1 slow. 2 fast. 3 faster. dmctl[1:0] chroma demodulation bypass mode. 0 chroma demodulation is enabled.* 1 chroma demodulation is bypassed for digital ycbcr input. 2 chroma demodulation is bypassed for analog ycbcr input. cb path is phase delayed by one half of ck2 clock period. 3 chroma demodulation is bypassed for analog ycbcr input. cr path is phase delayed by one half of ck2 clock period.
electronics S5D0127X01 data sheet multimedia video page 76 of 96 modified on may/04/2000 timing signal polarity control index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x30 polctl evavpl vspl oddpl havpl ehavpl hs2pl vavpl hs1pl hs1pl hs1 polarity. 0 active high.* 1 active low. vavpl vav polarity. 0 active high.* 1 active low. hs2pl hs2 polarity. 0 active high.* 1 active low.* ehavpl ehav polarity. 0 active high.* 1 active low. havpl hav polarity. 0 active high.* 1 active low. oddpl odd polarity (this also affects the f bit in 656 code) . 0 active high.* 1 active low. vspl vs polarity (this also affect the v bit in 656 code) . 0 active high.* 1 active low. evavpl evav polarity. 0 active high.* 1 active low.
electronics S5D0127X01 data sheet multimedia video page 77 of 96 modified on may/04/2000 reference code insertion control index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x31 refcod ycrang 0 0 0 0 0 0 0 ycrang digital video output range control. 0 y and c ranges are limited to 1 - 254; r, g, and b ranges are limited to 1 - 254.* 1 y range is limited to 16 - 235; c range is limited to 16 - 240; r, g, and b ranges are limited to 16 - 240. invalid y code index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x32 invaly invaly[7:0] invaly[7:0] user programmed code to be output for y data when hav is active but ehav is inactive. invalid u code index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x33 invalu invalu[7:0] invalu[7:0] user programmed code to be output for u data when hav is active but ehav is inactive. invalid v code index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x34 invalv invalv[7:0] invalv[7:0] user programmed code to be output for v data when hav is active but ehav is inactive.
electronics S5D0127X01 data sheet multimedia video page 78 of 96 modified on may/04/2000 unused y code index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x35 unusey unusey[7:0] unusey[7:0] user programmed code to be output for y data when hav is inactive. unused u code index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x36 unuseu unuseu[7:0] unuseu[7:0] user programmed code to be output for u data when hav is inactive. unused v code index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x37 unusev unusev[7:0] unusev[7:0] user programmed code to be output for v data when hav is inactive.
electronics S5D0127X01 data sheet multimedia video page 79 of 96 modified on may/04/2000 extra control bits for the S5D0127X01 version index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x38 exctrl 0 enincst 0 - aucpwd 0 0 clevel clevel programmable ckill burst level select bit. 0 burst peak level is 11 ire.* 1 burst peak level is 5.5 ire. aucpwd auto chroma adc power down mode enabled when appropriate input format is selected. 0 chroma adc powered down only during entire chip power down mode.* 1 chroma adc is power downed when cvbs input or case ?0? condition. enincst scaler enable control bit during vbi. 0 scaler on during vbi interval (defined by vav).* 1 scaler off during vbi interval.
electronics S5D0127X01 data sheet multimedia video page 80 of 96 modified on may/04/2000 tracking configuration controls a index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x39 tracka stctrl mac_det vcr_det vcr_lev[1:0] atctrap vbctrap agclsb agclsb agc lsb for control of the 9 bit agc gain value. this bit only write to agc when agcfrz is 1. 0 write ?0? to agc 9 bit control lsb if agcfrz = 1.* 1 write ?1? to agc 9 bit control lsb if agcfrz = 1. vbctrap chroma trap enabled during the vbi. 0 chroma trap is controlled by ctrap only.* 1 chroma trap enabled during vbi. atctrap auto chroma trap on luma path when vcr input is detected. 0 chroma trap is controlled by ctrap only.* 1 if vcr type input is detected, then ctrap is enabled. vcr_lev set the fh variation from nominal for detection of vcr type input. 0 50 ppm.* 1 100 ppm. 2 200 ppm. 3 400 ppm. vcr_det status bit. detect input that is not sch locked such as consumer type vcr (read only). 0 sch locked video. 1 color burst not locked to fh (vcr). mac_det status bit. macrovision encoded data detected as input video source (read only). 0 standard video detected. 1 macrovision encoded data detected. stctrl state machine transition control. 0 normal state machine transitions.* 1 steady state sync level removed as condition for lock.
electronics S5D0127X01 data sheet multimedia video page 81 of 96 modified on may/04/2000 vbi control register b index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x3a vbictlb vbiswap tt_sys[1:0] vbimid new_cc cc_ovfl yoffenb coffenb coffenb disable control for the c-path clamp control. 0 c-path clamp works as normal.* 1 c-path clamp disabled. yoffenb disable control for the y-path clamp control.* 0 y-path clamp works as normal.* 1 y-path clamp disabled. cc_ovfl defines when the current ccdat1,2 data has over written previous data that was not read. (read only) 0 current data has not generated an overflow condition. 1 current data as written over data that was not read. new_cc defines when new closed caption data is ready for reading from the ccdat1,2 bytes. (read only) 0 current data in ccdat1,2 has already been read. 1 current data in ccdat1,2 is new. vbimid changes function of wss enable (per line bases during vbi) to a raw cvbs enable. 0 when vbil (0-15) = 3, current line is enabled for wss slicing.* 1 when vbil (0-15) = 3, current line is enabled for raw adc output. tt_sys select teletext input system when auto detect is not possible. 0 auto teletext select.* 1 teletext system b. 2 teletext system c. 3 teletext system d. vbiswap reverse the bit order for data output from the closed caption or teletext slicer. 0 same as s5d0124d01 -- first bit sliced is located in msb position.* 1 first bit sliced (in time) is located in lsb position.
electronics S5D0127X01 data sheet multimedia video page 82 of 96 modified on may/04/2000 tracking configuration controls b index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x3b trackb alt656 vbi_ph vbi_fr ph_ctrl vnoisct agc_lpg[1:0] agc_lkg agc_lkg agc gain tracking loop time constant for initial tracking mode. 0 same as steady state time constant.* 1 2x faster than selected steady state time constant. agc_lpg agc gain steady state tracking loop time constant. 0 fastest.* 1 fast. 2 slow. 3 slowest. vnoisct vertical sync noise control enable. 0 vertical sync adjusts with all sync phase changes.* 1 vertical sync large phase errors must occur for 4 lines to activate a phase change. ph_ctrl controls phase detector response. 0 syncs after the ?0? point reference have priority.* 1 syncs prior to ?0? point reference have priority. vbi_fr disables frequency compensation for vcr head switch lines only. 0 frequency tracking independent of this control.* 1 frequency tracking disabled for vcr head switch lines. vbi_ph enables phase compensation for vcr head switch lines only. 0 phase tracking independent of this control.* 1 phase tracking enabled for vcr head switch lines only. alt656 alternate 656 vertical blank location for 50 hz video. 0 vertical blank size per the itu 656 specification (ends at 656 digital line 23).* 1 vertical blank size same as 60 hz (ends at 656 digital line (50 hz) 6).
electronics S5D0127X01 data sheet multimedia video page 83 of 96 modified on may/04/2000 rtc genlock output signal control index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x3c rtc rtc_dto rtc_pid 0 tdmod 0 0 0 0 tdmod test bit for chroma demodulation mode. 0 normal operation.* 1 test mode. rtc_pid polarity control for pal id transferred within the rtc data stream. 0 same polarity as default pid pin.* 1 inverted polarity. rtc_dto enables a dto reset inside the S5D0127X01 and sends a dto reset within the rtc data stream. function is activated on the rising edge of rtc_dto. 0 function disabled.* 1 function enabled one time when set to 1.
electronics S5D0127X01 data sheet multimedia video page 84 of 96 modified on may/04/2000 command register e index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x3d cmde odfst vsalg hcore[1:0] chiprevid chiprevid four additional bits for determination of current revision and differentiation from the s5d0124d01. 0 s5d0124d01. 9 S5D0127X01 revision a.* hcore luma path horizontal coring. noise limiter for high frequency portion of luma. 0 coring function is disabled.* 1 1 bit of coring. 2 2 bits of coring. 3 4 bits of coring. vsalg vertical scaling line dropping algorithm. 0 vertical scaling drops the same lines in the odd and even fields -- good for fast motion video.* 1 vertical scaling drops lines based on the final de-interlaced video. this is a better vertical scaling but may be sensitive to fast motion video. odfst alternate the first scaling line between odd and even fields. 0 even field is the first scaled field.* 1 odd field is the first scaled field.
electronics S5D0127X01 data sheet multimedia video page 85 of 96 modified on may/04/2000 vs delay control index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x3e vsdel tr_ms novidc vsdel[5:0] vsdel[5:0] when the chip is programmed for digital video input operation, this register provides an offset for the internal line counter to align with input video (vs can be either from the vs pin or from embedded timing code). the register content is unsigned. novidc allows novid bit to be output to portb (pin 24). 0 normal operation.* 1 the novid bit is output to portb if datab[2:0] =1 and dirb =1. tr_ms enable alternative initial tracking mode state machine. 0 normal operation - horizontal tracking mode is controlled by the hfsel[1:0] bits.* 1 variable tracking modes during locking time.
electronics S5D0127X01 data sheet multimedia video page 86 of 96 modified on may/04/2000 command register f index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x3f cmdf ctrapfsc vipmode evavy uvdlen uvdlsl regud taskb cbwi cbwi chroma bandwidth increase. this function should be used for digital video input mode only. 0 normal chroma bandwidth.* 1 increased chroma bandwidth. taskb select between task a and b as described in ?vip specification v. 1.0?. 0 select ccir 656 timing codes (t-bit is always 1).* 1 select between task a and b when vbi data is output. if active video is output, t-bit is set to 1(task a). if vbi data is output, t-bit is set to 0 (task b). regud control register update control. 0 registers are updated immediately after being written to.* 1 the following registers and register bits are updated only during the start of vertical sync after they are written to: index 0x02, indices 0x17 through 0x1d, bit 0 of index 0x04, bits [2:0] and [6:4] of index 0x0e. uvdlsl u or v delay control when uvdlen is set to 1. 0 v is delayed by 1 ck period.* 1 u is delayed by 1 ck period. uvdlen enable the function of uvdlsl . 0 uvdlsl is disabled.* 1 uvdlsl is enabled. evavy control the output of invaly, invalu, and invalv codes when evav is inactive. 0 output of these codes are not affected by evav.* 1 these codes are output when evav is inactive (line is being dropped by the vertical scaler). vipmode allows transfer of hardware sliced vbi data as ancillary data during the following line?s horizontal blanking period. 0 standard s5d0124d01 original sliced vbi data transfer.* 1 optional ancillary sliced vbi data transfer. ctrapfsc enable chroma trap location based on fsc frequency instead of field rate. 0 chroma trap based on field rate (same as s5d0124d01).* 1 chroma trap based on detected fsc frequency.
electronics S5D0127X01 data sheet multimedia video page 87 of 96 modified on may/04/2000 gamma base index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x40 gamma0 gamma0[7:0] 0x41 gamma1 gamma1[7:0] : : : : : : 0x5f gamma31 gamma31[7:0] gamma0 -gamma31 gamma correction base. the desired output for 8*n, where n = 0, .., 31, is programmed into gamma n. note that data written into these addresses are simultaneously written into addresses 0xc0 through 0xdf. gamma correction delta index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0x60 gammad0 - - gammad0[5:0] 0x61 gammad1 - - gammad1[5:0] : : : : : : : : : : 0x7f gammad31 - - gammad31[5:0] gammad0 ..gammad31 the nth location of the 32 locations is programmed with a 6-bit unsigned number which represents the gamma correction delta for the gamma bases n and n + 1. the last location will contain the gamma correction delta for gamma base 31 and presumed base 32 which has the value of 256. note that data written into these addresses are simultaneously written into addresses 0xe0 through 0xff .
electronics S5D0127X01 data sheet multimedia video page 88 of 96 modified on may/04/2000 u/v gamma base index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0xc0 gamuv0 gamuv0[7:0] 0xc1 gamuv1 gamuv1[7:0] : : : : : : 0xdf gamuv31 gamuv31[7:0] gamuv0 -gamuv31 u and v gamma correction base. the desired output for 8*n, where n = 0, .., 31, is programmed into gamuv n. u/v gamma correction delta index mnemonic bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0xe0 gamuvd0 - - gamuvd0[5:0] 0xe1 gamuvd1 - - gamuvd1[5:0] : : : : : : : : : : 0xff gamuvd31 - - gamuvd31[5:0] gamuvd0 ..gamuvd31 u and v gamma correction delta. the nth location of the 32 locations is programmed with a 6-bit unsigned number which represents the gamma correction delta for the gamma bases n and n + 1. the last location will contain the gamma correction delta for gamma base 31 and presumed base 32 which has the value of 256.
electronics S5D0127X01 data sheet multimedia video page 89 of 96 modified on may/04/2000 absolute maximum ratings notes: 1. absolute maximum ratings are limiting values applied individually while all other parameters are within specified operating conditions. 2. functional operation under any of these conditions is not implied. 3. applied voltage must be current limited to a specified range. operating conditions characteristics symbol value units 5-v supply voltage (measured to vss) v dd -0.5 to + 7.0 v 3.3-v supply voltage (measured to vss) v dd3 -0.5 to + 4.5 v voltage on any digital pin v pin -0.5 to (v dd +0.5) v ambient operating temperature (case) t a -35 to + 100 c storage temperature t s -65 to + 150 c junction temperature t j 150 c vapor phase soldering (1 min.) tvsol 220 c characteristics symbol min typ max units 5-v supply voltage (measured to vss) v dd5 4.75 5.0 5.25 v 3.3-v supply voltage (measured to vss) v dd3 3.0 3.3 3.6 v ambient operating temperature, still air t a -20 70 c
electronics S5D0127X01 data sheet multimedia video page 90 of 96 modified on may/04/2000 electrical characteristics characteristics symbol min typ max units supply +5v (vdd, vdda, vdda1), normal operation i dd5 150 ma +3.3v (vdd3), normal operation i dd3 141 ma +5v (vdd, vdda, vdda1), power down mode i dd5 90 ma +3.3v (vdd3), power down mode i dd3 5 ma analog characteristics integral linearity error (agc/adc only) e i-adc 1.0 3.0 lsb differential linearity error (agc/adc only) e d-adc 0.5 1.5 lsb total harmonic distortion (4 mhz full scale) thd 54 db signal to noise ratio (4 mhz full scale) snr 42 db analog bandwidth (50 ire to 3 db point) bw 4 mhz input voltage range (peak-peak) 100 ire input v i(pp) 0.5 1.5 v pp input resistance ay0-ay2,ac0-ac2 r in 200 k w input capacitance for analog video inputs c in 10 pf charge current for offset control i off 4 m a cross talk between analog inputs a -42 -50 db video performance luminance frequency response (maximum variation to 4.2 mhz - multi burst) f luma 1.5 db differential gain - complete chip (modulated 40 ire ramp) d g 1.5 % differential phase - complete chip (modulated 40 ire ramp) d p 1.0 degree chrominance frequency response (3 db point) - cbwr=0/1 f chroma 800/500 khz chroma nonlinear gain distortion (ntc-7 combination) c ngd 1 % chroma nonlinear phase distortion (ntc-7 combination) c npd 1.25 degree chroma to luma intermodulation (ntc-7 combination) c li 1 ire chroma luma gain equality (ntc-7 composite) del cl 20 ns chroma luma delay equality (ntc-7 composite) amp cl 98-101 % noise level for unified weighting 10 khz-5 mhz (100 ire unmodulated ramp) n luma -58 db chroma am noise (red field) n cam -60 db chroma pm noise (red field) n cpm -54 db
electronics S5D0127X01 data sheet multimedia video page 91 of 96 modified on may/04/2000 digital i/o characteristics input low voltage (other digital i/o) v il vss-0.5 0.8 v input high voltage (other digital i/o) v ih 2.0 vdd+0.5 v input low voltage (sclk,sdat, rst ) v ili2c vss-0.5 0.3vdd v input high voltage (sclk,sdat, rst ) v ihi2c 0.7vdd vdd+0.5 v input low current (v in = 0.4 v) i il -1 m a input high current(vin=2.4) i ih -1 m a digital output low voltage (i ol =3.2ma) v ol 0.4 v digital output high voltage (ioh=400 m a) v oh 2.4 v digital three-state current i oz 50 m a digital output capacitance c out 7 pf maximum capacitance load for digital data pins c l-data 30 pf maximum capacitance load for ck and ck2 outputs c l-ck 60 pf timing characteristics - digital inputs xtali input pulse width low t pwlx 15 20 ns xtali input pulse width high t pwhx 15 20 ns clock and data timing analog video input to digital video output delay t dchip 120 ck pulse width high for ck (ks0112 operates at frequencies from 24.5 mhz to 29 mhz) t pwhck 15 18.5 22 ns pulse width high for ck2 t pwhck2 30 37 44 ns delay from rising edge of ck to ck2 t ck2 4 ns delay from rising edge ck to data change (including pins y0-y7, c0-c7, hav, vav, ehav, evav, hs1, hs2, vs, odd, pid, sch) t dd (ck is output) 16 23 ns t dd (ck is input) 14 21 ns minimum hold time from rising edge of ck for data output) t hd 7 ns delay from falling edge of oen to data bits in 3-state t zd 20 ns delay from rising edge oen to data bits enabled t end 18 ns timing characteristics -iic host interface sclk clock frequency r sclk 0 400 khz capacitive load for each bus line c b 400 pf hold time for start condition t hsta 0.6 m s setup time for stop condition t ssto 0.6 m s rise and fall times for sclk and sdat t r , t f 20 300 ns characteristics symbol min typ max units
electronics S5D0127X01 data sheet multimedia video page 92 of 96 modified on may/04/2000 sclk minimum pulse width low t pwlsclk 1.3 m s sclk minimum pulse width high t pwhsclk 0.6 m s sdat setup time to rising edge of sclk t s sdat 100 ns sdat hold time from rising edge of sclk t hsdat 0 ns note: ac/dc characteristics provided are per design specifications. characteristics symbol min typ max units
electronics S5D0127X01 data sheet multimedia video page 93 of 96 modified on may/04/2000 figure 41. data output figure 42. analog video input to digital video output delay figure 43. iic host interface detailed timing t pwhck2 t ck2 t dd y,c,av t zd ck2 t pwhck oen t end vs,hs,odd sch,pid ck t hd blank analog video input digital video output active video active video t dchip sdat sclk t buf t ssdat t pwlsclk t pwhsclk t f t r t hsda t ssto t hsdat
electronics S5D0127X01 data sheet multimedia video page 94 of 96 modified on may/04/2000 56 55 54 90 92 94 77 78 96 97 8 7 6 1 3 1 4 1 9 4 0 4 1 6 0 6 4 6 5 8 3 8 7 9 1 9 5 v s s v s s v s s v s s v s s v s s v s s v s s v s s v s s v s s v s s v s s xtali xtalo ay0 ay1 ay2 ac0 ac1 ac2 vrt vrb test comp2 9 8 5 8 9 9 3 9 8 1 1 1 2 2 0 4 2 4 3 5 9 6 6 6 7 v d d a 1 v d d a v d d a v d d a v d d a v d d 3 v d d 3 v d d v d d 3 v d d 3 v d d v d d 3 v d d 3 vcc fe. bead 10 m f 0.1 m f 75 0.1 m f 0.1 m f 22 pf 22 pf 24.576 mhz 53 48 47 46 45 44 39 38 37 36 35 34 33 y7 y6 y5 y4 y3 y2 y1 y0 c7 c6 c5 c4 c3 c2 c1 c0 76 23 25 5 3 4 22 hs1 hs2 vs hav ehav vav evav odd 24 15 18 21 pid sch oen ck ck2 26 17 sclk sdat aex0 aex1 75 72 69 70 h o s t i n t e r f a c e t o f r a m e b u f f e r c o n t r o l l e r t o f r a m e b u f f e r a n a l o g v i d e o i n p u t S5D0127X01 hs2 20 k 57 testen 3.3v 84 86 88
electronics S5D0127X01 data sheet multimedia video page 95 of 96 modified on may/04/2000 package dimension 100-qfp-1420d dimensions are in millimeters (0.58) 0.30 0.10 0.65 #1 #100 ( 0 . 8 3 ) 20.00 0.20 23.90 0.30 1 7 . 9 0 0 . 3 0 1 4 . 0 0 0 . 2 0 0.10max 0.80 0.20 2.65 0.10 3.00max 0.00min 0.10max 0 . 1 5 + 0 . 1 0 - 0 . 0 5 0 ~ 8
electronics S5D0127X01 data sheet multimedia video page 96 of 96 modified on may/04/2000 samsung semiconductor worldwide offices . circuit diagrams utilizing samsung and/or samsung electronics products are included as a means of illustrating typical semiconductor applications; consequently, complete information sufficient for construction purposes is not necessarily given. the information has been carefully checked and is believed to be entirely reliable. however, no responsibility is assumed for inaccuracies. furthermore, such information does not convey to the purchaser of the semiconductor devices described herein any license under the patent rights of samsung and/or samsung electronics, or others. samsung and/or samsung electronics, reserve the right to change device specifications. life support applications samsung and/or samsung electronics products are not designed for use in life support applications, devices, or systems where malfunction of a samsung product can reasonably be expected to result in a personal injury. samsung and/or samsung electronics? customers using or selling samsung and/or samsung electronics products for use in such applications do so at their own risk and agree to fully indemnify samsung and/or samsung electronics for any damages resulting from such improper use or sale. head office 8/11fl., samung main bldg. 250, 2-ka, taepyung-ro, chung-ku, seoul, korea tel: 2-727-7114 fax: 2-753-0967 semiconductor business sales & marketing division 15/16fl., severance bldg. 84-11, 5-ka, namdaemoon-ro chung-ku, seoul, korea tel: 2-259-1114 fax: 2-259-2468 samsung semiconductor inc. 3655 north first street san jose, ca 95134, u.s.a. tel: 408-954-7000 fax: 408-954-7873 samsung semiconductor europe gmbh samsung house am kronberger hang 6 65824, schwalbach/ts tel: 49-6196-663300 fax: 49-6196-663311 samsung semiconductor europe ltd. great west house great west road, brentford middlesex tw8 9dq tel: 181-380-7132 fax: 181-380-7220 samsung electronics japan co., ltd. hamacho center bldg. 31-1, nihonbashi-hamacho, 2-chome chuo-ku, tokyo 103, japan tel: 3-5641-9850 fax: 3-5641-9851 samsung electronics hong kong co., ltd. 65th fl., central plaza 18 harbour road wanchai, hong kong tel: 852-2862-6900 fax: 852-2866-1343 samsung electronics taiwan co., ltd. 30fl., no.333 keelung rd. sec 1, taipei, taiwan, r.o.c tel: 886-2-757-9292 fax: 886-2-757-7311 samsung asia prt., ltd. 80 robinson rd., #20-01 singapore 068898 tel: 65-535-2808 fax: 65-227-2792 samsung electronics co., ltd. shanghai office 9f, shanghai international trade centre no.2200 yanan(w) rd. shanghai, p.r.c. 200335 tel: 8621-6270-4168 fax: 8621-6275-2975 samsung electronics co., ltd. semiconductor business beijing office 15fl., bright china chang an bldg., no.7, jianguomen, nei avenue beijing, china 100005 tel: 8610-6510-1234(0)


▲Up To Search▲   

 
Price & Availability of S5D0127X01

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X